Skip to content

Commit

Permalink
build-ci: allow re-running release builds on workflow_dispatch
Browse files Browse the repository at this point in the history
  • Loading branch information
sturnclaw authored and impaktor committed Feb 3, 2025
1 parent 43adfd0 commit 1eb74f0
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
6 changes: 5 additions & 1 deletion .github/actions/upload-appimage/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ inputs:
upload_release:
description: "should the binary be uploaded to a tagged release?"
default: false
tag_name:
description: "release tag to upload artifacts to"
default: ""

runs:
using: "composite"
Expand Down Expand Up @@ -42,8 +45,9 @@ runs:

- name: Upload Release Files
uses: softprops/action-gh-release@v1
if: ${{ github.event_name == 'release' && inputs.upload_release }}
if: ${{ (github.event_name == 'release' || github.event_name == 'workflow_dispatch') && inputs.upload_release }}
with:
files: Pioneer*.AppImage
tag_name: ${{ inputs.tag_name || github.ref_name }}
env:
GITHUB_TOKEN: ${{ inputs.token }}
6 changes: 5 additions & 1 deletion .github/actions/upload-linux/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ inputs:
upload_release:
description: "should the binary be uploaded to a tagged release?"
default: false
tag_name:
description: "release tag to upload artifacts to"
default: ""

runs:
using: "composite"
Expand Down Expand Up @@ -46,8 +49,9 @@ runs:

- name: Upload Release Files
uses: softprops/action-gh-release@v1
if: ${{ github.event_name == 'release' && inputs.upload_release }}
if: ${{ (github.event_name == 'release' || github.event_name == 'workflow_dispatch') && inputs.upload_release }}
with:
files: release/pioneer-linux-x64-*.tar.gz
tag_name: ${{ inputs.tag_name || github.ref_name }}
env:
GITHUB_TOKEN: ${{ inputs.token }}
8 changes: 8 additions & 0 deletions .github/workflows/build-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,13 @@ on:
- 'cmake/*.cmake'
release:
types: [published]
workflow_dispatch:
inputs:
tag_name:
description: The release tag name to update
default: ''
required: true
type: string

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand Down Expand Up @@ -95,6 +102,7 @@ jobs:
if: ${{ github.event_name == 'release' }}
with:
files: pioneer/pioneer-*-win.exe
tag_name: ${{ inputs.tag_name || github.ref_name }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Expand Down

0 comments on commit 1eb74f0

Please sign in to comment.