Skip to content

Commit ceb43f0

Browse files
committed
Add release workflow
1 parent 7bc0728 commit ceb43f0

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

.github/workflows/release.yaml

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: release
2+
3+
on:
4+
push:
5+
tags:
6+
- "v*.*.*"
7+
8+
jobs:
9+
create:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: softprops/action-gh-release@v2
13+
with:
14+
draft: true
15+
build:
16+
needs: create
17+
strategy:
18+
matrix:
19+
os: [macos, windows]
20+
fail-fast: false
21+
runs-on: "${{ matrix.os }}-latest"
22+
steps:
23+
- uses: actions/checkout@v4
24+
- uses: volta-cli/action@v4
25+
# https://github.com/actions/runner/issues/2958
26+
- if: matrix.os == 'macos'
27+
uses: actions/setup-python@v5
28+
with:
29+
python-version: '3.x'
30+
- if: matrix.os == 'macos'
31+
run: pip install setuptools
32+
- run: npm ci
33+
- run: npm run make
34+
- uses: softprops/action-gh-release@v2
35+
with:
36+
draft: true
37+
files: |
38+
out/make/**/*.{exe,dmg}
39+
fail_on_unmatched_files: true

0 commit comments

Comments
 (0)