Skip to content

Commit 2d594c1

Browse files
committed
Update release.yml with code-signing
1 parent fe3bec2 commit 2d594c1

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.github/workflows/release.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,19 +39,20 @@ jobs:
3939
CERTIFICATE_PASSWORD: ${{ secrets.CERTIFICATE_PASSWORD }}
4040
run: |
4141
echo "$SIGNING_CERTIFICATE" | base64 --decode > certificate.p12
42-
security import certificate.p12 -P "$CERTIFICATE_PASSWORD" -T /usr/bin/codesign
42+
# Import certificate into the login keychain explicitly
43+
security import certificate.p12 -k ~/Library/Keychains/login.keychain -P "$CERTIFICATE_PASSWORD" -T /usr/bin/codesign
4344
4445
- name: Code Sign Application
4546
if: matrix.os == 'macos-latest'
4647
run: |
47-
codesign --sign "3rd Party Mac Developer Application: Your Name (TeamID)" \
48+
codesign --sign "${{ secrets.SIGNING_IDENTITY }}" \
4849
--deep --force --timestamp --options runtime \
4950
--entitlements build/entitlements.mac.plist \
50-
"dist/mac/YourAppName.app"
51+
"dist/mac/DHIS2 Downloader.app"
5152
5253
- name: Verify Code Signature
5354
if: matrix.os == 'macos-latest'
54-
run: codesign --verify --deep --strict --verbose=2 "dist/mac/YourAppName.app"
55+
run: codesign --verify --deep --strict --verbose=2 "dist/mac/DHIS2 Downloader.app"
5556
# === End of macOS Code Signing Steps ===
5657

5758
- name: Upload artifact

0 commit comments

Comments
 (0)