Open paulocoutinhox opened 3 years ago
I solved with:
- name: Install application certificate
uses: apple-actions/import-codesign-certs@v1
with:
keychain: ${{ github.run_id }}
keychain-password: ${{ github.run_id }}
p12-file-base64: ${{ secrets.MAC_APPLICATION_CERTIFICATE_P12 }}
p12-password: ${{ secrets.MAC_APPLICATION_CERTIFICATE_PASSPHRASE }}
- name: Install installer certificate
uses: apple-actions/import-codesign-certs@v1
with:
keychain: ${{ github.run_id }}
keychain-password: ${{ github.run_id }}
create-keychain: false
p12-file-base64: ${{ secrets.MAC_INSTALLER_CERTIFICATE_P12 }}
p12-password: ${{ secrets.MAC_INSTALLER_CERTIFICATE_PASSPHRASE }}
You can add support for multiple certificates to help us add more than one.
A parameter called "amount" will add to environment variables suffix: "_1", "_2" ... to amount number. Or p12-file-base64 and p12-password can accept array data.
Thank you @paulo-coutinho! multiple certificates support is absolutely essential
If anyone else comes across this in future, you can easily use multiple certificates, the key is to do it when exporting the certificates from keychain on the mac. You can export as many as you want into a single p12 file. I explored all of my Developer, Mac and iOS certificates and keys (around 11 certificates) into a single file and it works a treat.
Hi,
I have an error when import certificate:
Log: https://github.com/paulo-coutinho/prprojector/runs/1939802758?check_suite_focus=true#step:9:15
Can you help me?