Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replacing release trigger with manual #125

Merged
merged 1 commit into from
Apr 18, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 15 additions & 12 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
Expand All @@ -54,20 +57,20 @@ 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
with:
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
with:
platform: linux
platform-short: linux
runtime: linux-x64
build-version: ${{ github.event.release.tag_name }}
build-version: ${{ inputs.release-tag }}
Loading