Repository navigation
Description
Store screenshots upload to App Store Connect from a script instead of by hand in the Media Manager.
The 1.2.0 set (#836) was uploaded manually through the web UI because the repo has no screenshot upload step: ios-release.yml only uploads the IPA to TestFlight with altool, and scripts/store-screenshots/push-store-shots.mjs pushes to a separate store-shots instance, not App Store Connect. The App Store Connect API key (ASC_API_KEY_P8, ASC_KEY_ID, ASC_ISSUER_ID) exists only as GitHub secrets.
Needs the App Store Connect API (appScreenshotSets / appScreenshots) to replace the iPhone 6.9" and iPad 13" sets on an editable version, in order, without submitting for review. Related to #836.
Inputs
- Directory: the rendered Spectrum slides, not the raw captures. The renderer writes them to
store-screenshots/spectrum/app-store-iphone-6.9/(1320×2868) andstore-screenshots/spectrum/app-store-ipad-13/(2064×2752). The renderer is still the untracked prototype inprototypes/store-shots-spectrum/until Store Screenshots: 8-shot Spectrum set #836 moves it intoscripts/store-screenshots/; the script takes the directory as an option and defaults tostore-screenshots/spectrum/. - Order: file-name order (
01-…png,02-…png, …). Refuse to upload when a file's pixel size does not match its display type. - Locale:
en-USonly. Fail if the editable version has noen-USlocalization instead of guessing another. - iPad source:
scripts/store-screenshots.mjshas no iPad target; the raw captures instore-screenshots/ipad-13/come from a manual run. The upload script only reads the renderedapp-store-ipad-13/folder, so it does not depend on how iPad was captured. When that folder is missing, skip iPad with a message rather than delete the existing iPad set.
API key role
Uploading builds with altool works with a Developer-role key, but changing App Store screenshots needs App Manager or Admin. Check the role of the key behind ASC_KEY_ID in App Store Connect → Users and Access → Integrations before relying on it; the script should report a 403 as a role problem.
Where it runs (recommended: local)
Run it locally with a key the user supplies (ASC_KEY_ID, ASC_ISSUER_ID, and a path to the .p8, read from the environment and never committed). The rendered slides are gitignored and exist only on the machine that captured them, so a workflow_dispatch job has nothing to upload unless it also captures and renders, which is out of scope. A local script also keeps the ASC key out of another workflow once the repo is public.
Remaining:
- Confirm the local-run choice above, or replace it on this issue
- Script it: find the editable version and its
en-USlocalization, delete the old screenshots in the target display type, upload the new ones in file order, wait for processing - Dry-run mode that lists what would be replaced, and a guard against submitting for review
- Confirm the ASC key has the App Manager role, or create one that does
Activity
#840 Upload App Store screenshots through the App Store Connect API (#…
ivanfenenko commentedon Oct 26, 2026
Shipped in #852.