-
Notifications
You must be signed in to change notification settings - Fork 2
40 lines (37 loc) · 921 Bytes
/
build.yml
File metadata and controls
40 lines (37 loc) · 921 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: Build
on:
push:
tags:
- 'v*'
workflow_dispatch:
jobs:
build-windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- run: npm ci
- run: npx vite build
- run: npx electron-builder --win --publish never
- uses: actions/upload-artifact@v4
with:
name: ScriptPlayerPlus-Windows
path: dist/win-unpacked/
build-mac:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- run: npm ci
- run: npx vite build
- run: npx electron-builder --mac --publish never
env:
CSC_IDENTITY_AUTO_DISCOVERY: false
- uses: actions/upload-artifact@v4
with:
name: ScriptPlayerPlus-Mac
path: dist/*.zip