Skip to content

Commit

Permalink
fix: enhance notarization process by capturing logs and adding step ID
Browse files Browse the repository at this point in the history
Signed-off-by: Nikolai Emil Damm <[email protected]>
  • Loading branch information
devantler committed Feb 19, 2025
1 parent 5068a9c commit f9d5d1f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ jobs:
# https://docs.github.com/en/actions/use-cases-and-examples/deploying/installing-an-apple-certificate-on-macos-runners-for-xcode-development#creating-secrets-for-your-certificate-and-provisioning-profile
- name: πŸ”‘ Add Cert to Keychain
uses: apple-actions/import-codesign-certs@v3
id: import-codesign-certs
with:
p12-file-base64: ${{ secrets.APPLE_CERT_P12_BASE64 }}
p12-password: ${{ secrets.APPLE_CERT_P12_PASSWORD }}
Expand All @@ -69,8 +70,11 @@ jobs:
echo "Creating temp notarization archive"
zip -r notarization.zip ksail-darwin-amd64 ksail-darwin-arm64
echo "Notarize app"
xcrun notarytool submit "notarization.zip" --keychain-profile "notarytool-profile" --wait
echo "Notarize app and retrieve logs"
id=$(xcrun notarytool submit "notarization.zip" --keychain-profile "notarytool-profile" --wait | grep 'id:' | awk '{print $2}')
echo "$id"
xcrun notarytool log $id --keychain-profile "notarytool-profile" developer_log.json
cat developer_log.json
- name: πŸ“¦ Tar binaries
run: tar -czf ksail.tar.gz ksail-darwin-amd64 ksail-darwin-arm64 ksail-linux-amd64 ksail-linux-arm64
- name: πŸŽ‰ Release
Expand Down

0 comments on commit f9d5d1f

Please sign in to comment.