Codemagic: use the existing team API key integration

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
metatroncubeswdev 2026-10-31 13:17:59 -04:00
parent 5721eb53c9
commit b966b6c45e
2 changed files with 3 additions and 3 deletions

View File

@ -2,7 +2,7 @@
#
# Needed in Codemagic (Team settings / app settings):
# - Environment variable group "nk_app": SUPABASE_URL, SUPABASE_PUBLISHABLE_KEY, MEDIA_BASE_URL
# - App Store Connect API key integration named "NK App Store Connect" (iOS)
# - App Store Connect API key integration "clickstocart-app" (Developer Portal) (iOS)
# - Variable CERTIFICATE_PRIVATE_KEY (secure) in group "nk_ios_signing" (iOS signing)
# - Android keystore uploaded with reference name "nk_upload_keystore" (Android)
# - Variable GCLOUD_SERVICE_ACCOUNT_CREDENTIALS in group "nk_google_play" (Android publishing)
@ -38,7 +38,7 @@ workflows:
instance_type: mac_mini_m2
max_build_duration: 60
integrations:
app_store_connect: NK App Store Connect
app_store_connect: clickstocart-app # the team API key in Codemagic (covers all our Apple apps)
environment:
groups:
- nk_app

View File

@ -25,7 +25,7 @@ each store release. Build numbers are set automatically by Codemagic.
- `MEDIA_BASE_URL` = `https://app.nkbmusic.com/storage/v1/object/public/audio`
2. **App Store Connect API key.**
- In App Store Connect, open Users and Access > Integrations > App Store Connect API and generate a key with the **App Manager** role.
- In Codemagic, open Team settings > Team integrations > Developer Portal and add the key with the name **`NK App Store Connect`**.
- In Codemagic, open Team settings > Team integrations > Developer Portal and add the key with the name **`clickstocart-app`** (already added; it works for every app in the Apple team).
3. **iOS signing (automatic).** The build creates the Apple Distribution certificate and the App
Store profile itself through the API key, so no profiles are made by hand.
- Create a variable group **`nk_ios_signing`** with `CERTIFICATE_PRIVATE_KEY` (secure).