Skip to content

Commit 5178bfc

Browse files
committed
refactor(electron-buid): Make build more dry
1 parent 3b29cc4 commit 5178bfc

File tree

1 file changed

+4
-13
lines changed

1 file changed

+4
-13
lines changed

.github/workflows/build-electron.yml

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ env:
2626
FONT_AWESOME_AUTH_TOKEN: ${{ secrets.FONT_AWESOME_AUTH_TOKEN }}
2727
SKIP_SIGNING: ${{ inputs.skip_signing }}
2828
BRAND: ${{ inputs.brand || 'remoteit' }}
29+
GH_TOKEN: ${{ secrets.github_token }}
2930

3031
jobs:
3132
release:
@@ -72,20 +73,10 @@ jobs:
7273
run: |
7374
npm install
7475
75-
- name: Build Electron app (macOS)
76-
if: matrix.os == 'macos-14'
77-
run: |
78-
cd electron
79-
npm run build
80-
env:
81-
GH_TOKEN: ${{ secrets.github_token }}
82-
CSC_LINK: ${{ secrets.mac_certs }}
83-
CSC_KEY_PASSWORD: ${{ secrets.mac_certs_password }}
84-
8576
- name: Build Electron app
86-
if: matrix.os != 'macos-14'
77+
env:
78+
CSC_LINK: ${{ matrix.os == 'macos-14' && secrets.mac_certs || '' }}
79+
CSC_KEY_PASSWORD: ${{ matrix.os == 'macos-14' && secrets.mac_certs_password || '' }}
8780
run: |
8881
cd electron
8982
npm run build
90-
env:
91-
GH_TOKEN: ${{ secrets.github_token }}

0 commit comments

Comments
 (0)