| 1 |
Code Signing |
| 2 |
|
| 3 |
1. Open Keychain Access |
| 4 |
2. Goto Keychain Access -> Certificate Assistant -> Request a Certificate From |
| 5 |
a Certificate Authority... |
| 6 |
3. Enter Apple Developer Account email address for User Email Address |
| 7 |
4. Select Request is: Saved to disk |
| 8 |
5. Click Continue and save the CSR to disk |
| 9 |
|
| 10 |
6. Sign in to account at https://developer.apple.com/account |
| 11 |
7. Click Certificates, then the plus icon to add a certificate |
| 12 |
8. Select "Developer ID Application" and click Continue |
| 13 |
9. Upload the previously created CSR, then download the signed certificate |
| 14 |
|
| 15 |
10. Locate it in Finder and double click, importing it into the 'login' |
| 16 |
keychain |
| 17 |
11. In Keychain Access, click the login keychain, then My Certificates |
| 18 |
12. Find the imported "Developer ID Application" certificate, then right click |
| 19 |
and select Export |
| 20 |
13. Select to save as .p12, and set a secure password |
| 21 |
14. Open a command line, and run base64 -i <certificate.p12> on the exported |
| 22 |
certificate |
| 23 |
15. Copy the output to the clipboard |
| 24 |
|
| 25 |
16. On the GitHub repo, go to Settings -> Secrets and variables -> Actions |
| 26 |
17. Click New repository secret and enter APPLE_CERTIFICATE_P12_BASE64 for the |
| 27 |
Name |
| 28 |
18. Paste the contents of the clipboard for the Secret |
| 29 |
19. Set a secret, APPLE_CERTIFICATE_PASSWORD for the password created above |
| 30 |
20. Set a secret, APPLE_CERTIFICATE_ID that matches the certificate name; under |
| 31 |
normal circumstances "Developer ID Application" should be sufficient |
| 32 |
|
| 33 |
|
| 34 |
Notarization |
| 35 |
|
| 36 |
1. Sign in to https://account.apple.com/sign-in |
| 37 |
2. Create an App-Specific Password named "Notarization" |
| 38 |
3. Set a secret, APPLE_NOTARIZATION_USERNAME to your Apple ID |
| 39 |
4. Set a secret, APPLE_NOTARIZATION_PASSWORD to the newly created password |
| 40 |
3. Set a secret, APPLE_TEAM_ID to your Apple Developer Account Team ID, which |
| 41 |
can be found in the Membership Details section at |
| 42 |
https://developer.apple.com/account |
| 43 |
|
| 44 |
|
| 45 |
Note: GitHub secrets cannot be retrieved in plain text, even by the repository |
| 46 |
owner, so securely store any values you may want to re-enter later |