|
@@ -1,25 +1,27 @@
|
|
|
name: Deploy
|
|
|
|
|
|
on:
|
|
|
- push:
|
|
|
- tags:
|
|
|
- - 'v*'
|
|
|
+ workflow_dispatch:
|
|
|
+ inputs:
|
|
|
+ version:
|
|
|
+ description: 'Version number for the app'
|
|
|
+ required: true
|
|
|
+ default: ''
|
|
|
|
|
|
jobs:
|
|
|
deploy:
|
|
|
runs-on: windows-latest
|
|
|
steps:
|
|
|
- - uses: actions/checkout@v4
|
|
|
-
|
|
|
- - uses: ./.github/actions/prepare-for-release
|
|
|
+ - uses: actions/checkout@v4
|
|
|
+
|
|
|
+ - uses: ./.github/actions/prepare-for-release
|
|
|
+ with:
|
|
|
+ version: ${{ github.event.inputs.version }}
|
|
|
|
|
|
- - name: Create GitHub release
|
|
|
- uses: ncipollo/release-action@v1
|
|
|
- with:
|
|
|
- artifacts: "publish/*.exe,publish/*.msi"
|
|
|
- allowUpdates: true
|
|
|
- removeArtifacts: true
|
|
|
- replacesArtifacts: true
|
|
|
- artifactErrorsFailBuild: true
|
|
|
- makeLatest: true
|
|
|
- prerelease: contains(github.ref, 'beta')
|
|
|
+ - name: Create GitHub release
|
|
|
+ uses: ncipollo/release-action@v1
|
|
|
+ with:
|
|
|
+ tag: "v${{ github.event.inputs.version }}"
|
|
|
+ artifacts: "publish/*/*.exe,publish/*/*.msi"
|
|
|
+ generateReleaseNotes: true
|
|
|
+ prerelease: ${{ contains(github.event.inputs.version, 'preview') }}
|