on macos only for cert

This commit is contained in:
CJ Pais 2025-06-25 17:15:35 -07:00
parent f5ce104462
commit 0f61f81717

View file

@ -42,6 +42,7 @@ jobs:
run: bun install # change this to npm, pnpm or bun depending on which one you use. run: bun install # change this to npm, pnpm or bun depending on which one you use.
- name: import Apple Developer Certificate - name: import Apple Developer Certificate
if: matrix.platform == 'macos-latest'
# Prevents keychain from locking automatically for 3600 seconds. # Prevents keychain from locking automatically for 3600 seconds.
env: env:
APPLE_CERTIFICATE: ${{ secrets.APPLE_CERTIFICATE }} APPLE_CERTIFICATE: ${{ secrets.APPLE_CERTIFICATE }}
@ -58,6 +59,7 @@ jobs:
security find-identity -v -p codesigning build.keychain security find-identity -v -p codesigning build.keychain
- name: verify certificate - name: verify certificate
if: matrix.platform == 'macos-latest'
run: | run: |
CERT_INFO=$(security find-identity -v -p codesigning build.keychain | grep "Developer ID Application") CERT_INFO=$(security find-identity -v -p codesigning build.keychain | grep "Developer ID Application")
CERT_ID=$(echo "$CERT_INFO" | awk -F'"' '{print $2}') CERT_ID=$(echo "$CERT_INFO" | awk -F'"' '{print $2}')