Skip to content

Commit 0b8daf7

Browse files
Add Electron build workflow
1 parent 5ee8461 commit 0b8daf7

File tree

1 file changed

+54
-0
lines changed

1 file changed

+54
-0
lines changed
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
name: Electron Build
2+
3+
on:
4+
push:
5+
branches: [main]
6+
paths:
7+
- "electron/**"
8+
workflow_dispatch:
9+
10+
permissions:
11+
contents: read
12+
13+
jobs:
14+
build:
15+
runs-on: ${{ matrix.os }}
16+
strategy:
17+
fail-fast: false
18+
matrix:
19+
os: [windows-latest, macos-latest, ubuntu-latest]
20+
21+
steps:
22+
- uses: actions/checkout@v4
23+
24+
- uses: actions/setup-node@v4
25+
with:
26+
node-version: "20"
27+
cache: "npm"
28+
cache-dependency-path: electron/package-lock.json
29+
30+
- name: Install dependencies
31+
working-directory: electron
32+
run: npm ci
33+
34+
- name: Build installers
35+
working-directory: electron
36+
run: npm run dist
37+
38+
- name: Upload artifacts
39+
uses: actions/upload-artifact@v4
40+
with:
41+
name: electron-${{ matrix.os }}
42+
path: |
43+
electron/dist/*.exe
44+
electron/dist/*.msi
45+
electron/dist/*.dmg
46+
electron/dist/*.pkg
47+
electron/dist/*.zip
48+
electron/dist/*.AppImage
49+
electron/dist/*.deb
50+
electron/dist/*.rpm
51+
electron/dist/*.tar.gz
52+
electron/dist/latest*.yml
53+
electron/dist/*.blockmap
54+
if-no-files-found: warn

0 commit comments

Comments
 (0)