File tree Expand file tree Collapse file tree 1 file changed +54
-0
lines changed
Expand file tree Collapse file tree 1 file changed +54
-0
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments