- name: Decode certificates and profiles
run: |
echo $MAS_CERTIFICATE_P12 | base64 --decode > mac_app.p12
echo $MAS_INSTALLER_CERTIFICATE_P12 | base64 --decode > mac_installer.p12
echo $MAS_PROVISIONING_PROFILE | base64 --decode > p3xredisui.provisionprofile
- name: Install Certificate
run: |
security create-keychain -p actions build.keychain
security default-keychain -s build.keychain
security unlock-keychain -p actions build.keychain
security import mac_app.p12 -k build.keychain -P "$MAS_CERTIFICATE_PASSWORD" -T /usr/bin/codesign
security import mac_installer.p12 -k build.keychain -P "$MAS_INSTALLER_CERTIFICATE_PASSWORD" -T /usr/bin/productsign
security set-key-partition-list -S apple-tool:,apple: -s -k actions build.keychain