diff --git a/.github/actions/upload-appimage/action.yml b/.github/actions/upload-appimage/action.yml index 45dc2e9279f..092ca469a0b 100644 --- a/.github/actions/upload-appimage/action.yml +++ b/.github/actions/upload-appimage/action.yml @@ -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" @@ -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 }} diff --git a/.github/actions/upload-linux/action.yml b/.github/actions/upload-linux/action.yml index 3a609ae927d..d3229d0abba 100644 --- a/.github/actions/upload-linux/action.yml +++ b/.github/actions/upload-linux/action.yml @@ -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" @@ -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 }} diff --git a/.github/workflows/build-ci.yml b/.github/workflows/build-ci.yml index dfc5d3b3d19..cd92e18ec0c 100644 --- a/.github/workflows/build-ci.yml +++ b/.github/workflows/build-ci.yml @@ -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 }} @@ -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 }}