Skip to content

Commit 2e08ed1

Browse files
committed
fix prod publish gha
1 parent ba04ebb commit 2e08ed1

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

.github/workflows/prod-publish.yml

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ jobs:
2323
run: |
2424
sudo apt-get install --no-install-recommends -y rpm libarchive-tools
2525
26+
# https://github.com/electron/forge/issues/2807
27+
- if: ${{ matrix.os == 'macos-latest' }}
28+
run: python3 -m pip install setuptools
29+
2630
- name: Used variables
2731
run: |
2832
echo "MP_PROJECT_ENV variable : ${{ vars.MP_PROJECT_ENV }}"
@@ -35,12 +39,19 @@ jobs:
3539
uses: actions/setup-node@v4
3640
with:
3741
node-version: 20
38-
cache: npm
42+
# cache: npm
3943

4044
- name: Install dependencies
4145
run: |
4246
npm ci
4347
48+
- if: ${{ matrix.os == 'macos-latest' }}
49+
name: Import Certs
50+
uses: apple-actions/import-codesign-certs@v2
51+
with:
52+
p12-file-base64: ${{ secrets.CSC_LINK }}
53+
p12-password: ${{ secrets.CSC_KEY_PASSWORD }}
54+
4455
- name: Publish releases
4556
env:
4657
# macOS code signing and notarization
@@ -49,9 +60,9 @@ jobs:
4960
APPLE_APP_SPECIFIC_PASSWORD: ${{ secrets.APPLE_ID_PASSWORD }}
5061
APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}
5162
APPLE_PROD_CERT_NAME: ${{ secrets.APPLE_PROD_CERT_NAME }}
52-
5363
CSC_LINK: ${{ secrets.CSC_LINK }}
5464
CSC_KEY_PASSWORD: ${{ secrets.CSC_KEY_PASSWORD }}
65+
5566
WIN_CSC_LINK: ${{ secrets.WIN_CSC_BASE64 }}
5667
WIN_CSC_KEY_PASSWORD: ${{ secrets.WIN_CSC_KEY_PASSWORD_2 }}
5768
# CSC_IDENTITY_AUTO_DISCOVERY: false
@@ -64,5 +75,6 @@ jobs:
6475
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
6576

6677
run: |
67-
npm run publish
78+
npm run publish -- --arch=x64
79+
npm run publish -- --arch=arm64
6880

0 commit comments

Comments
 (0)