Skip to content

Commit 5d80969

Browse files
7418claude
andcommitted
fix(ci): add --publish never and simplify Windows matrix
electron-builder auto-publishes in CI without GH_TOKEN, causing failure. Also remove redundant Windows arch matrix since NSIS bundles both x64 and arm64 in a single installer. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 57f1679 commit 5d80969

1 file changed

Lines changed: 5 additions & 8 deletions

File tree

.github/workflows/build.yml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,6 @@ jobs:
2121
build-windows:
2222
if: ${{ github.event_name == 'push' || inputs.platform == 'all' || inputs.platform == 'windows' }}
2323
runs-on: windows-latest
24-
strategy:
25-
matrix:
26-
arch: [x64, arm64]
2724
steps:
2825
- uses: actions/checkout@v4
2926

@@ -38,13 +35,13 @@ jobs:
3835
- name: Build Electron app
3936
run: npm run electron:build
4037

41-
- name: Package for Windows (${{ matrix.arch }})
42-
run: npx electron-builder --win --${{ matrix.arch }} --config electron-builder.yml
38+
- name: Package for Windows
39+
run: npx electron-builder --win --config electron-builder.yml --publish never
4340

4441
- name: Upload Windows artifacts
4542
uses: actions/upload-artifact@v4
4643
with:
47-
name: windows-${{ matrix.arch }}
44+
name: windows
4845
path: |
4946
release/*.exe
5047
release/*.zip
@@ -71,7 +68,7 @@ jobs:
7168
run: npm run electron:build
7269

7370
- name: Package for macOS (${{ matrix.arch }})
74-
run: npx electron-builder --mac --${{ matrix.arch }} --config electron-builder.yml
71+
run: npx electron-builder --mac --${{ matrix.arch }} --config electron-builder.yml --publish never
7572

7673
- name: Upload macOS artifacts
7774
uses: actions/upload-artifact@v4
@@ -101,7 +98,7 @@ jobs:
10198
run: npm run electron:build
10299

103100
- name: Package for Linux (${{ matrix.arch }})
104-
run: npx electron-builder --linux --${{ matrix.arch }} --config electron-builder.yml
101+
run: npx electron-builder --linux --${{ matrix.arch }} --config electron-builder.yml --publish never
105102

106103
- name: Upload Linux artifacts
107104
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)