From 41ed7b2865fd203137d1a7a6aa9ff7d449b3acaf Mon Sep 17 00:00:00 2001 From: John Bowen Date: Fri, 12 Apr 2024 20:24:47 -0700 Subject: [PATCH] Replacing release trigger with manual --- .github/workflows/release.yml | 27 +++++++++++++++------------ 1 file changed, 15 insertions(+), 12 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b9bd5ad..824aeb0 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,8 +1,10 @@ name: Release desktop binaries on: - release: - types: - - published + workflow_dispatch: + inputs: + release-tag: + description: 'Version number to build and release' + required: true jobs: github-release: name: Create GitHub release @@ -28,16 +30,17 @@ jobs: path: linux-package - name: Package output files run: | - zip -r dmt-${{ github.event.release.tag_name }}-win-x64.zip windows-package/* - zip -r dmt-${{ github.event.release.tag_name }}-mac-x64.zip mac-package/* - zip -r dmt-${{ github.event.release.tag_name }}-linux-x64.zip linux-package/* + zip -r dmt-${{ inputs.release-tag }}-win-x64.zip windows-package/* + zip -r dmt-${{ inputs.release-tag }}-mac-x64.zip mac-package/* + zip -r dmt-${{ inputs.release-tag }}-linux-x64.zip linux-package/* - name: Create GitHub release uses: softprops/action-gh-release@v1 with: + tag_name: ${{ inputs.release-tag }} files: | - dmt-${{ github.event.release.tag_name }}-win-x64.zip - dmt-${{ github.event.release.tag_name }}-mac-x64.zip - dmt-${{ github.event.release.tag_name }}-linux-x64.zip + dmt-${{ inputs.release-tag }}-win-x64.zip + dmt-${{ inputs.release-tag }}-mac-x64.zip + dmt-${{ inputs.release-tag }}-linux-x64.zip build-package: name: Build self-contained executables runs-on: ubuntu-latest @@ -54,7 +57,7 @@ jobs: platform: windows platform-short: win runtime: win-x64 - build-version: ${{ github.event.release.tag_name }} + build-version: ${{ inputs.release-tag }} - name: Execute Action build-with-plugins for MacOS uses: ./.github/actions/build-with-plugins id: build-with-plugins-mac @@ -62,7 +65,7 @@ jobs: platform: mac platform-short: mac runtime: osx-x64 - build-version: ${{ github.event.release.tag_name }} + build-version: ${{ inputs.release-tag }} - name: Execute Action build-with-plugins for Linux uses: ./.github/actions/build-with-plugins id: build-with-plugins-linux @@ -70,4 +73,4 @@ jobs: platform: linux platform-short: linux runtime: linux-x64 - build-version: ${{ github.event.release.tag_name }} + build-version: ${{ inputs.release-tag }}