Skip to content

Commit 72f4b23

Browse files
committed
update workflow to sign and notarize in production
1 parent bfbc350 commit 72f4b23

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

.github/workflows/release.yml

+15
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,22 @@ jobs:
3030
# if: matrix.os == 'ubuntu-latest'
3131
# run: npm run build:linux
3232

33+
# Decode and import Developer ID Certificate
34+
- name: Set up Code Signing Certificate
35+
run: |
36+
echo "${{ secrets.CERTIFICATE_BASE64 }}" | base64 --decode > certificate.p12
37+
security create-keychain -p "" build.keychain
38+
security default-keychain -s build.keychain
39+
security unlock-keychain -p "" build.keychain
40+
security import certificate.p12 -k build.keychain -P "${{ secrets.CERTIFICATE_PASSWORD }}" -T /usr/bin/codesign
41+
security set-key-partition-list -S apple-tool:,apple: -s -k "" build.keychain
42+
3343
- name: build-mac
44+
env:
45+
APPLE_USERNAME: ${{ secrets.APPLE_USERNAME }}
46+
APPLE_PASSWORD: ${{ secrets.APPLE_PASSWORD }}
47+
APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}
48+
APP_BUNDLE_ID: ${{ secrets.APP_BUNDLE_ID }}
3449
if: matrix.os == 'macos-latest'
3550
run: npm run build:mac
3651

0 commit comments

Comments
 (0)