Skip to content

Latest commit

 

History

History
47 lines (40 loc) · 3.02 KB

testflight.md

File metadata and controls

47 lines (40 loc) · 3.02 KB

Releasing Piano to TestFlight

.github/workflows/ios-release.yml archives Piano, signs it with Apple's cloud-managed certificate and uploads it to TestFlight. It is oldsj/workflows' reusable ios-testflight.yml (pinned by commit), run by hand from main (Actions > iOS release > Run workflow). It has no other trigger. Every run waits in the testflight environment for your approval.

Nothing is stored in Git: no certificate, profile or key. The bundle ID and Team ID live only in the GitHub environment and are written to ios/Config/Local.xcconfig (gitignored) on the runner.

One-time setup

  1. App ID. In the Apple Developer account, register the App ID io.github.oldsj.piano with the capabilities the app needs (none beyond the defaults today; the microphone needs a usage string, not a capability).
  2. App Store Connect record. Create the app with that bundle ID (it appears in the list only after step 1).
  3. API key. Users and Access > Integrations > Team Keys, access App Manager (Admin if the first run reports a cloud signing permission error). Download the .p8 once and save it as ~/ios-keys/AuthKey_<ID>.p8.
  4. Environment and secrets. From a checkout of oldsj/workflows run scripts/ios-testflight-setup.sh oldsj/piano io.github.oldsj.piano (testflight-setup.sh in short). It creates the testflight environment with you as the required reviewer and main and ios-v* as the only allowed refs, sets ASC_KEY_ID, ASC_ISSUER_ID, ASC_KEY_P8 and APPLE_TEAM_ID as secrets and IOS_BUNDLE_ID as a variable, and prints names only. It is safe to re-run.
  5. Run it. Run the workflow from main, approve the run, and wait for TestFlight to process the build.

The build number is the run number. The version is MARKETING_VERSION in ios/project.yml.

Things to know

  • The bundle ID in ios/Config/Piano.xcconfig stays a placeholder (org.example...). The real one comes from the IOS_BUNDLE_ID variable: the run writes it to ios/Config/Local.xcconfig as PIANO_BUNDLE_ID = ..., which Piano.xcconfig includes last, so it wins. The run also checks the archive's bundle ID before uploading.
  • The workflow uses the reusable workflow's default runner label (xcode-27, a larger runner of the owner's account), as oldsj/mainloop does. If it is not available to this repository, set runner: (for example macos-latest) in the workflow. GitHub-hosted runners only.
  • The reusable workflow fails before the upload when an iPad app does not declare all four orientations, in both UISupportedInterfaceOrientations and UISupportedInterfaceOrientations~ipad. Piano declares all four in both (ios/project.yml) and does not set UIRequiresFullScreen (deprecated in iPadOS 26), so every screen has to work upright and in a resized window. The play screen asks for a wider window below 520 points rather than breaking.
  • .github/workflows/ios.yml still checks every change to ios/ (tests and an unsigned simulator build). This workflow is only for releases.