Skip to content

Commit bb1611c

Browse files
committed
fix: update keychain handling in macOS release workflow for certificate import and verification
1 parent 1f58f57 commit bb1611c

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/release.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,9 @@ jobs:
9696
# Import certificate
9797
echo $APPLE_CERTIFICATE | base64 --decode > certificate.p12
9898
security import certificate.p12 -P "$APPLE_CERTIFICATE_PASSWORD" -A -t cert -f pkcs12 -k $KEYCHAIN_PATH
99-
security list-keychain -d user -s $KEYCHAIN_PATH
99+
100+
# Set the keychain as default search list
101+
security list-keychain -d user -s $KEYCHAIN_PATH login.keychain
100102
101103
# Allow codesign to access keychain
102104
security set-key-partition-list -S apple-tool:,apple:,codesign: -s -k "$KEYCHAIN_PASSWORD" $KEYCHAIN_PATH
@@ -106,6 +108,10 @@ jobs:
106108
107109
echo "✅ Certificate imported successfully"
108110
111+
# Verify certificate is available
112+
echo "📋 Available signing identities:"
113+
security find-identity -v -p codesigning $KEYCHAIN_PATH
114+
109115
- name: Build Tauri app (Universal Binary)
110116
env:
111117
APPLE_SIGNING_IDENTITY: ${{ secrets.APPLE_SIGNING_IDENTITY }}

0 commit comments

Comments
 (0)