.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.
- App ID. In the Apple Developer account, register the App ID
io.github.oldsj.pianowith the capabilities the app needs (none beyond the defaults today; the microphone needs a usage string, not a capability). - App Store Connect record. Create the app with that bundle ID (it appears in the list only after step 1).
- API key. Users and Access > Integrations > Team Keys, access App Manager (Admin if
the first run reports a cloud signing permission error). Download the
.p8once and save it as~/ios-keys/AuthKey_<ID>.p8. - Environment and secrets. From a checkout of oldsj/workflows run
scripts/ios-testflight-setup.sh oldsj/piano io.github.oldsj.piano(testflight-setup.shin short). It creates thetestflightenvironment with you as the required reviewer andmainandios-v*as the only allowed refs, setsASC_KEY_ID,ASC_ISSUER_ID,ASC_KEY_P8andAPPLE_TEAM_IDas secrets andIOS_BUNDLE_IDas a variable, and prints names only. It is safe to re-run. - 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.
- The bundle ID in
ios/Config/Piano.xcconfigstays a placeholder (org.example...). The real one comes from theIOS_BUNDLE_IDvariable: the run writes it toios/Config/Local.xcconfigasPIANO_BUNDLE_ID = ..., whichPiano.xcconfigincludes 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, setrunner:(for examplemacos-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
UISupportedInterfaceOrientationsandUISupportedInterfaceOrientations~ipad. Piano declares all four in both (ios/project.yml) and does not setUIRequiresFullScreen(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.ymlstill checks every change toios/(tests and an unsigned simulator build). This workflow is only for releases.