Skip to content

Commit

Permalink
Update ant.yml
Browse files Browse the repository at this point in the history
Allen made me do it. 
Changes to Keychain setup
  • Loading branch information
lkurz authored May 15, 2024
1 parent f7b6d0d commit b95f3f5
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/ant.yml
Original file line number Diff line number Diff line change
Expand Up @@ -358,17 +358,17 @@ jobs:
run: |
# create variables
CERTIFICATE_PATH=$RUNNER_TEMP/build_certificate.p12
KEYCHAIN_PATH=$RUNNER_TEMP/app-signing.keychain-db
KEYCHAIN_FILE=app-signing
# import certificate from secrets
echo $BUILD_CERTIFICATE_BASE64 | base64 --decode > $CERTIFICATE_PATH
security -v create-keychain -p $KEYCHAIN_PASSWD $KEYCHAIN_PATH
security -v list-keychain -d user -s app-signing
security -v create-keychain -p $KEYCHAIN_PASSWD $KEYCHAIN
security -v list-keychain -d user -s $KEYCHAIN_FILE
security -v list-keychains
security -v set-keychain-settings -lut 21600 $KEYCHAIN_PATH
security -v unlock-keychain -p $KEYCHAIN_PASSWD $KEYCHAIN_PATH
security -v set-keychain-settings -lut 21600 $KEYCHAIN_FILE
security -v unlock-keychain -p $KEYCHAIN_PASSWD $KEYCHAIN_FILE
# import certificate to keychain
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 import $CERTIFICATE_PATH -P $P12_PASSWORD -A -t cert -f pkcs12 -k $KEYCHAIN_FILE
security -v set-key-partition-list -S apple-tool:,codesign:,apple: -k $KEYCHAIN_PASSWD $KEYCHAIN_FILE
- name: Set up JDK 21
uses: actions/setup-java@v3
Expand Down

0 comments on commit b95f3f5

Please sign in to comment.