Skip to content

Commit 1eb74f0

Browse files
sturnclawimpaktor
authored andcommitted
build-ci: allow re-running release builds on workflow_dispatch
1 parent 43adfd0 commit 1eb74f0

File tree

3 files changed

+18
-2
lines changed

3 files changed

+18
-2
lines changed

.github/actions/upload-appimage/action.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ inputs:
1414
upload_release:
1515
description: "should the binary be uploaded to a tagged release?"
1616
default: false
17+
tag_name:
18+
description: "release tag to upload artifacts to"
19+
default: ""
1720

1821
runs:
1922
using: "composite"
@@ -42,8 +45,9 @@ runs:
4245

4346
- name: Upload Release Files
4447
uses: softprops/action-gh-release@v1
45-
if: ${{ github.event_name == 'release' && inputs.upload_release }}
48+
if: ${{ (github.event_name == 'release' || github.event_name == 'workflow_dispatch') && inputs.upload_release }}
4649
with:
4750
files: Pioneer*.AppImage
51+
tag_name: ${{ inputs.tag_name || github.ref_name }}
4852
env:
4953
GITHUB_TOKEN: ${{ inputs.token }}

.github/actions/upload-linux/action.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ inputs:
1414
upload_release:
1515
description: "should the binary be uploaded to a tagged release?"
1616
default: false
17+
tag_name:
18+
description: "release tag to upload artifacts to"
19+
default: ""
1720

1821
runs:
1922
using: "composite"
@@ -46,8 +49,9 @@ runs:
4649

4750
- name: Upload Release Files
4851
uses: softprops/action-gh-release@v1
49-
if: ${{ github.event_name == 'release' && inputs.upload_release }}
52+
if: ${{ (github.event_name == 'release' || github.event_name == 'workflow_dispatch') && inputs.upload_release }}
5053
with:
5154
files: release/pioneer-linux-x64-*.tar.gz
55+
tag_name: ${{ inputs.tag_name || github.ref_name }}
5256
env:
5357
GITHUB_TOKEN: ${{ inputs.token }}

.github/workflows/build-ci.yml

+8
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,13 @@ on:
1717
- 'cmake/*.cmake'
1818
release:
1919
types: [published]
20+
workflow_dispatch:
21+
inputs:
22+
tag_name:
23+
description: The release tag name to update
24+
default: ''
25+
required: true
26+
type: string
2027

2128
concurrency:
2229
group: ${{ github.workflow }}-${{ github.ref }}
@@ -95,6 +102,7 @@ jobs:
95102
if: ${{ github.event_name == 'release' }}
96103
with:
97104
files: pioneer/pioneer-*-win.exe
105+
tag_name: ${{ inputs.tag_name || github.ref_name }}
98106
env:
99107
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
100108

0 commit comments

Comments
 (0)