Skip to content

Commit 5e44ab3

Browse files
committed
build: Add workflow_dispatch to Release action
1 parent cec7bf3 commit 5e44ab3

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/release.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
name: Release
22
on:
3+
workflow_dispatch:
34
push:
45
tags:
56
- '*'
@@ -39,6 +40,7 @@ jobs:
3940
- name: Create Release info
4041
run: ./.deploy/gen_release_info.py
4142
- uses: actions/create-release@v1
43+
if: github.event_name == 'push'
4244
id: create_release
4345
env:
4446
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -71,7 +73,7 @@ jobs:
7173
- name: "Sysroot Build with Mingw-w64"
7274
run: ./do_sysroot.sh
7375
- uses: actions/upload-release-asset@v1
74-
if: matrix.arch == 'x86-64'
76+
if: matrix.arch == 'x86-64' && github.event_name == 'push'
7577
env:
7678
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
7779
with:
@@ -80,7 +82,7 @@ jobs:
8082
asset_name: rtl_433-win-x64-${{ needs.release_job.outputs.release_version }}.zip
8183
asset_content_type: application/zip
8284
- uses: actions/upload-release-asset@v1
83-
if: matrix.arch == 'x86-64'
85+
if: matrix.arch == 'x86-64' && github.event_name == 'push'
8486
env:
8587
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
8688
with:
@@ -182,7 +184,7 @@ jobs:
182184
ls -al dist
183185
7z a rtl_433-win-msvc-x64.zip ./dist/*
184186
- uses: actions/upload-release-asset@v1
185-
if: matrix.os == 'windows-2019' && matrix.platform == 'x64'
187+
if: matrix.os == 'windows-2019' && matrix.platform == 'x64' && github.event_name == 'push'
186188
env:
187189
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
188190
with:

0 commit comments

Comments
 (0)