Skip to content

Commit 5d4a649

Browse files
authored
add release workflow (#3)
1 parent 7dc3ef0 commit 5d4a649

File tree

2 files changed

+23
-1
lines changed

2 files changed

+23
-1
lines changed

.github/workflows/package.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,7 @@ jobs:
1717
- uses: actions/upload-artifact@v3
1818
with:
1919
name: package
20-
path: build/*.msi
20+
path: |
21+
build/*.msi
22+
build/*.zip
2123
if-no-files-found: error

.github/workflows/release.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Release
2+
on:
3+
workflow_dispatch:
4+
inputs:
5+
tag:
6+
description: 'Release tag'
7+
required: true
8+
type: string
9+
jobs:
10+
release:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/download-artifact@v3
14+
with:
15+
name: package
16+
- run: |
17+
gh release create "${TAG}" ./*.msi ./*.zip
18+
env:
19+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
20+
TAG: ${{ inputs.tag }}

0 commit comments

Comments
 (0)