Skip to content

Commit

Permalink
build: Add workflow_dispatch to Release action
Browse files Browse the repository at this point in the history
  • Loading branch information
zuckschwerdt committed Dec 14, 2021
1 parent cec7bf3 commit 5e44ab3
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
name: Release
on:
workflow_dispatch:
push:
tags:
- '*'
Expand Down Expand Up @@ -39,6 +40,7 @@ jobs:
- name: Create Release info
run: ./.deploy/gen_release_info.py
- uses: actions/create-release@v1
if: github.event_name == 'push'
id: create_release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down Expand Up @@ -71,7 +73,7 @@ jobs:
- name: "Sysroot Build with Mingw-w64"
run: ./do_sysroot.sh
- uses: actions/upload-release-asset@v1
if: matrix.arch == 'x86-64'
if: matrix.arch == 'x86-64' && github.event_name == 'push'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
Expand All @@ -80,7 +82,7 @@ jobs:
asset_name: rtl_433-win-x64-${{ needs.release_job.outputs.release_version }}.zip
asset_content_type: application/zip
- uses: actions/upload-release-asset@v1
if: matrix.arch == 'x86-64'
if: matrix.arch == 'x86-64' && github.event_name == 'push'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
Expand Down Expand Up @@ -182,7 +184,7 @@ jobs:
ls -al dist
7z a rtl_433-win-msvc-x64.zip ./dist/*
- uses: actions/upload-release-asset@v1
if: matrix.os == 'windows-2019' && matrix.platform == 'x64'
if: matrix.os == 'windows-2019' && matrix.platform == 'x64' && github.event_name == 'push'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
Expand Down

0 comments on commit 5e44ab3

Please sign in to comment.