Skip to content

Commit 56ccd1b

Browse files
committed
Codesign & notarize macOS release
1 parent bfb9e45 commit 56ccd1b

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/release.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,35 @@ jobs:
6060
run: >
6161
chmod +x build/bin/*/Contents/MacOS/*
6262
63+
- name: Download gon for code signing and notarization (macOS)
64+
if: matrix.build.target == 'macOS'
65+
run: |
66+
brew install Bearer/tap/gon
67+
68+
- name: Import codesigning certificates (macOS)
69+
if: matrix.build.target == 'macOS'
70+
uses: Apple-Actions/import-codesign-certs@v1
71+
with:
72+
p12-file-base64: ${{ secrets.APPLE_CODESIGN_CERT }}
73+
p12-password: ${{ secrets.APPLE_CODESIGN_CERT_PASSPHRASE }}
74+
75+
- name: Codesign (macOS)
76+
if: matrix.build.target == 'macOS'
77+
env:
78+
AC_USERNAME: ${{ secrets.APPLE_CODESIGN_NOTARY_USER }}
79+
AC_PASSWORD: ${{ secrets.APPLE_CODESIGN_NOTARY_PASSWORD }}
80+
AC_PROVIDER: ${{ secrets.APPLE_CODESIGN_ACCOUNT_ID }}
81+
AC_APPLICATION_IDENTITY: ${{ secrets.APPLE_CODESIGN_APP_IDENTITY }}
82+
run: |
83+
echo "Signing package"
84+
gon -log-level=info ./build/darwin/gon-sign.json
85+
6386
- name: Create and prepare release directory
6487
run: |
6588
mkdir -p release/pkg
6689
mkdir -p release/RailwayNetDiag_${{ matrix.build.target }}
6790
mv build/bin/* release/RailwayNetDiag_${{ matrix.build.target }}/
91+
ls -l release/RailwayNetDiag_${{ matrix.build.target }}/
6892
6993
- name: Codesign (Windows)
7094
if: matrix.build.target == 'Win'

0 commit comments

Comments
 (0)