Skip to content

Commit 1b0f998

Browse files
committed
workflow adjustments
1 parent f49b05a commit 1b0f998

File tree

1 file changed

+7
-16
lines changed

1 file changed

+7
-16
lines changed

.github/workflows/electron.yml

Lines changed: 7 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
1-
# name of your github action
21
name: BuildnPub_WLGate
3-
# this will help you specify where to run
42
on:
53
push:
64
branches:
7-
# this will run on the electron branch
8-
- master
5+
- mac_action
96
workflow_dispatch:
107

118
jobs:
@@ -18,12 +15,10 @@ jobs:
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
@@ -42,12 +37,10 @@ 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:
@@ -59,9 +52,7 @@ jobs:
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

Comments
 (0)