Skip to content

Commit

Permalink
Use env vars (#186)
Browse files Browse the repository at this point in the history
  • Loading branch information
byrnHDF authored May 6, 2024
1 parent bc309da commit 2d7cf55
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/ant.yml
Original file line number Diff line number Diff line change
Expand Up @@ -360,17 +360,17 @@ jobs:
CERTIFICATE_PATH=$RUNNER_TEMP/build_certificate.p12
KEYCHAIN_PATH=$RUNNER_TEMP/app-signing.keychain-db
# import certificate from secrets
echo -n "${{ secrets.APPLE_CERTS_BASE64 }}" | base64 --decode -o $CERTIFICATE_PATH
echo -n "$BUILD_CERTIFICATE_BASE64" | base64 --decode -o $CERTIFICATE_PATH
ls -la $RUNNER_TEMP
security -v verify-cert -c $CERTIFICATE_PATH
# create temporary keychain
security -v create-keychain -p "${{ secrets.KEYCHAIN_PASSWD }}" $KEYCHAIN_PATH
security -v create-keychain -p "$KEYCHAIN_PASSWD" $KEYCHAIN_PATH
security -v list-keychains
security -v set-keychain-settings -lut 21600 $KEYCHAIN_PATH
security -v unlock-keychain -p "${{ secrets.KEYCHAIN_PASSWD }}" $KEYCHAIN_PATH
security -v unlock-keychain -p "$KEYCHAIN_PASSWD" $KEYCHAIN_PATH
# import certificate to keychain
security -v import $CERTIFICATE_PATH -P "${{ secrets.APPLE_CERTS_BASE64_PASSWORD }}" -A -t cert -f pkcs12 -k $KEYCHAIN_PATH
security -v set-key-partition-list -S apple-tool:,apple: -k "${{ secrets.KEYCHAIN_PASSWD }}" $KEYCHAIN_PATH
security -v import $CERTIFICATE_PATH -P "$P12_PASSWORD" -A -t cert -f pkcs12 -k $KEYCHAIN_PATH
security -v set-key-partition-list -S apple-tool:,apple: -k "$KEYCHAIN_PASSWD" $KEYCHAIN_PATH
security -v list-keychain -d user -s $KEYCHAIN_PATH
- name: Set up JDK 21
Expand Down

0 comments on commit 2d7cf55

Please sign in to comment.