Skip to content

Commit

Permalink
Add certificate verification step to publish workflow
Browse files Browse the repository at this point in the history
This change introduces a step to verify the imported Apple Development certificate in the publish workflow. It ensures the certificate ID is extracted and made available as an environment variable for subsequent steps. This enhances the robustness of
  • Loading branch information
tangxianyun committed Jan 8, 2025
1 parent 49b4ec4 commit dbff538
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,13 @@ jobs:
security import certificate.p12 -k build.keychain -P "$APPLE_CERTIFICATE_PASSWORD" -T /usr/bin/codesign
security set-key-partition-list -S apple-tool:,apple:,codesign: -s -k "$KEYCHAIN_PASSWORD" build.keychain
security find-identity -v -p codesigning build.keychain
- name: Verify Certificate
run: |
CERT_INFO=$(security find-identity -v -p codesigning build.keychain | grep "Apple Development")
CERT_ID=$(echo "$CERT_INFO" | awk -F'"' '{print $2}')
echo "CERT_ID=$CERT_ID" >> $GITHUB_ENV
echo "Certificate imported."
- name: install Rust stable
uses: dtolnay/rust-toolchain@stable
Expand Down

0 comments on commit dbff538

Please sign in to comment.