- Developer ID Application certificate exported and stored as
~/Documents/developer-id.p12 - GitHub secret
APPLE_CERTIFICATE_P12_BASE64set - GitHub secret
APPLE_CERTIFICATE_PASSWORDset - GitHub secret
APPLE_TEAM_IDset (SQZ9VHYXJ3) - GitHub secret
APPLE_IDset ([email protected]) - GitHub Actions workflow written at
.github/workflows/build-macos.yml
Go to: https://appstoreconnect.apple.com/access/integrations/api
Sign in with [email protected] (2FA code will be sent to your phone ending in 27).
- Click the "Team Keys" tab
- Click "+"
- Fill in:
- Name:
occode-notarize - Access:
Developer
- Name:
- Click Generate
You'll see a table with your new key:
| Name | Key ID | Issuer ID |
|---|---|---|
| occode-notarize | XXXXXXXXXX |
xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx |
Note down:
- Key ID → this is
APPLE_API_KEY_ID - Issuer ID (shown at the top of the page, shared across all keys) → this is
APPLE_API_KEY_ISSUER
Click "Download API Key" next to your new key.
⚠️ Apple only lets you download this once. Don't skip it.
It saves as something like AuthKey_XXXXXXXXXX.p8 in your Downloads folder.
Open Terminal and run these one at a time, replacing the placeholders:
# Set the Key ID
gh secret set APPLE_API_KEY_ID --body "PASTE_KEY_ID_HERE" --repo damoahdominic/occ
# Set the Issuer ID
gh secret set APPLE_API_KEY_ISSUER --body "PASTE_ISSUER_ID_HERE" --repo damoahdominic/occ
# Set the .p8 file contents
gh secret set APPLE_API_KEY_P8 < ~/Downloads/AuthKey_XXXXXXXXXX.p8 --repo damoahdominic/occReplace
AuthKey_XXXXXXXXXX.p8with the actual filename from your Downloads folder.
gh secret list --repo damoahdominic/occYou should see all 7 secrets:
APPLE_CERTIFICATE_P12_BASE64APPLE_CERTIFICATE_PASSWORDAPPLE_TEAM_IDAPPLE_IDAPPLE_API_KEY_IDAPPLE_API_KEY_ISSUERAPPLE_API_KEY_P8
git tag v1.0.0
git push origin v1.0.0The workflow triggers automatically and creates a GitHub Release with the signed .zip.
Go to: https://github.com/damoahdominic/occ/actions/workflows/build-macos.yml
Click "Run workflow" → "Run workflow".
After downloading the artifact, run:
unzip OCcode-darwin-arm64-signed.zip
codesign -dv --deep --verbose=4 OCcode.app
spctl -a -vvv -t install OCcode.appBoth should pass with no errors and show Developer ID Application: HITL, Inc (SQZ9VHYXJ3).