1- # name of your github action
21name : BuildnPub_WLGate
3- # this will help you specify where to run
42on :
53 push :
64 branches :
7- # this will run on the electron branch
85 - master
96 workflow_dispatch :
107
118jobs :
129 build_on_linux :
1310 runs-on : ubuntu-latest
1411 steps :
15- - uses : actions/checkout@v2
12+ - uses : actions/checkout@v4
1613 - uses : actions/setup-node@master
1714 with :
1815 node-version : 21
1916 - name : install dependencies
2017 run : npm install
21- - name : build
22- run : npm run make -- --platform linux --arch=x64
23- - name : publish
18+ - name : build and publish
2419 env :
2520 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
26- run : npm run publish --from-dry-run
21+ run : npx electron-forge publish --platform linux --arch=x64
2722
2823 build_on_mac :
2924 runs-on : macos-14
3025 steps :
31- - uses : actions/checkout@v2
26+ - uses : actions/checkout@v4
3227 - uses : actions/setup-node@master
3328 with :
3429 node-version : 21
@@ -42,26 +37,22 @@ jobs:
4237 npm install -g appdmg@0.6.6
4338 - name : install dependencies
4439 run : npm install
45- - name : build
46- run : npm run make --arch=universal
47- - name : publish
40+ - name : build and publish
4841 env :
4942 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
50- run : npm run publish --from-dry-run
43+ run : npx electron-forge publish --arch=universal
5144
5245
5346 build_on_win :
5447 runs-on : windows-latest
5548 steps :
56- - uses : actions/checkout@v2
49+ - uses : actions/checkout@v4
5750 - uses : actions/setup-node@master
5851 with :
5952 node-version : 21
6053 - name : install dependencies
6154 run : npm install
62- - name : build
63- run : npm run make
64- - name : publish
55+ - name : build and publish
6556 env :
6657 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
67- run : npm run publish --from-dry-run
58+ run : npx electron-forge publish
0 commit comments