Skip to content

Commit 4f9d72f

Browse files
committed
Add CI build workflow
1 parent f663175 commit 4f9d72f

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

.github/workflows/build.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Build
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*'
7+
workflow_dispatch:
8+
9+
jobs:
10+
build-windows:
11+
runs-on: windows-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
- uses: actions/setup-node@v4
15+
with:
16+
node-version: 20
17+
- run: npm ci
18+
- run: npx vite build
19+
- run: npx electron-builder --win --publish never
20+
- uses: actions/upload-artifact@v4
21+
with:
22+
name: ScriptPlayerPlus-Windows
23+
path: dist/win-unpacked/
24+
25+
build-mac:
26+
runs-on: macos-latest
27+
steps:
28+
- uses: actions/checkout@v4
29+
- uses: actions/setup-node@v4
30+
with:
31+
node-version: 20
32+
- run: npm ci
33+
- run: npx vite build
34+
- run: npx electron-builder --mac --publish never
35+
env:
36+
CSC_IDENTITY_AUTO_DISCOVERY: false
37+
- uses: actions/upload-artifact@v4
38+
with:
39+
name: ScriptPlayerPlus-Mac
40+
path: dist/*.zip

0 commit comments

Comments
 (0)