Add TestFlight workflow: upload to internal testing on every merge to main - #106
Merged
sanylax0 merged 1 commit intoJul 19, 2026
Merged
Conversation
… main macOS runner, xcodegen generate, cloud-managed signing via an App Store Connect API key (no certificates in secrets), build number pinned to the run number so uploads never collide, and -exportArchive with destination=upload pushes straight to App Store Connect — internal testers get the build automatically once processing finishes. Requires ASC_KEY_ID / ASC_ISSUER_ID / ASC_KEY_P8 repository secrets (documented in the workflow header); serialized via a concurrency group.
sanylax0
approved these changes
Jul 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
.github/workflows/testflight.yml: every push tomain(i.e., every merged PR) archives the app on a macOS runner and uploads it to App Store Connect — builds land with internal TestFlight testers automatically once processing finishes (internal distribution needs no extra step or review).How
xcodegen generatefirst (the.xcodeprojis gitignored), newest Xcode on themacos-26image.xcodebuild -allowProvisioningUpdateswith an App Store Connect API key mints certs/profiles on the fly — no certificates or provisioning profiles stored anywhere.CURRENT_PROJECT_VERSIONoverride), monotonic per repo, so TestFlight never rejects a duplicateCFBundleVersion.-exportArchivewithmethod: app-store-connect, destination: uploaduploads directly;manageAppVersionAndBuildNumber=falsekeeps our numbering authoritative.concurrencygroup serializes uploads (no cancel mid-upload); rapid merges queue.Setup required (once, before first run)
Create an App Store Connect API key (Users and Access → Integrations → App Store Connect API, role App Manager) and add three repository secrets:
ASC_KEY_IDASC_ISSUER_IDASC_KEY_P8.p8, base64-encoded (base64 -i AuthKey_XXX.p8 | pbcopy)The job fails with a clear message if they're missing; set the repo variable
TESTFLIGHT_ENABLED=falseto pause the workflow without deleting it.Notes
TESTFLIGHT_ENABLED=falsehere, whichever pipeline you prefer to own releases.macos-26assumes GitHub's current image lineup; if the runs queue forever, switch tomacos-latest.🤖 Generated with Claude Code
https://claude.ai/code/session_013TJoWkqg8bzkGdzxWhWjWP
Generated by Claude Code