diff --git a/.github/workflows/ant.yml b/.github/workflows/ant.yml index 68f4fcbb..c20808d1 100644 --- a/.github/workflows/ant.yml +++ b/.github/workflows/ant.yml @@ -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