Try updating the workflow again
parent
4ee46cee77
commit
d528cbf85a
|
@ -25,12 +25,30 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
echo "DEVELOPMENT_TEAM = $MAC_DEVELOPMENT_TEAM" > Xcode-config/DEVELOPMENT_TEAM.xcconfig
|
echo "DEVELOPMENT_TEAM = $MAC_DEVELOPMENT_TEAM" > Xcode-config/DEVELOPMENT_TEAM.xcconfig
|
||||||
- name: Install application certificate
|
- name: Install application certificate
|
||||||
uses: apple-actions/import-codesign-certs@v1
|
env:
|
||||||
with:
|
BUILD_CERTIFICATE_BASE64: ${{ secrets.MAC_DEVELOPMENT_CERTIFICATE_P12 }}
|
||||||
keychain: ${{ github.run_id }}
|
APPLICATION_CERTIFICATE_BASE64: ${{ secrets.MAC_APPLICATION_CERTIFICATE_P12 }}
|
||||||
keychain-password: ${{ github.run_id }}
|
P12_PASSWORD: ${{ secrets.MAC_APPLICATION_CERTIFICATE_PASSPHRASE }}
|
||||||
p12-file-base64: ${{ secrets.MAC_APPLICATION_CERTIFICATE_P12 }}
|
KEYCHAIN_PASSWORD: ${{ secrets.MAC_KEYCHAIN_PASSWORD }}
|
||||||
p12-password: ${{ secrets.MAC_APPLICATION_CERTIFICATE_PASSPHRASE }}
|
run: |
|
||||||
|
# create variables
|
||||||
|
BUILD_CERTIFICATE_PATH=$RUNNER_TEMP/build_certificate.p12
|
||||||
|
APP_CERTIFICATE_PATH=$RUNNER_TEMP/app_certificate.p12
|
||||||
|
KEYCHAIN_PATH=$RUNNER_TEMP/app-signing.keychain-db
|
||||||
|
|
||||||
|
# import certificates from secrets
|
||||||
|
echo -n "$BUILD_CERTIFICATE_BASE64" | base64 --decode --output $BUILD_CERTIFICATE_PATH
|
||||||
|
echo -n "$APPLICATION_CERTIFICATE_BASE64" | base64 --decode --output $APP_CERTIFICATE_PATH
|
||||||
|
|
||||||
|
# create temporary keychain
|
||||||
|
security create-keychain -p $KEYCHAIN_PASSWORD $KEYCHAIN_PATH
|
||||||
|
security set-keychain-settings -lut 21600 $KEYCHAIN_PATH
|
||||||
|
security unlock-keychain -p $KEYCHAIN_PASSWORD $KEYCHAIN_PATH
|
||||||
|
|
||||||
|
# import certificates to keychain
|
||||||
|
security import $BUILD_CERTIFICATE_PATH -P $P12_PASSWORD -A -t cert -f pkcs12 -k $KEYCHAIN_PATH
|
||||||
|
security import $APP_CERTIFICATE_PATH -P $P12_PASSWORD -A -t cert -f pkcs12 -k $KEYCHAIN_PATH
|
||||||
|
security list-keychain -d user -s $KEYCHAIN_PATH
|
||||||
- name: Run xcodebuild
|
- name: Run xcodebuild
|
||||||
run: >
|
run: >
|
||||||
xcodebuild
|
xcodebuild
|
||||||
|
|
Loading…
Reference in New Issue