Repository navigation
ci(release): ship only the tvOS app to TestFlight - #68
Merged
Merged
Conversation
This fork keeps only the Apple TV app, and pull request CI no longer builds iOS or macOS, so a release run would be the first place an iPhone or Mac compile error showed up. Remove the iOS and macOS build and distribution jobs and the platform input from release.yml. The record step now writes "on tvOS.", so promote.yml accepts a build distributed on tvOS, including older lines that also list iOS and macOS. The release guide drops the iPhone and Mac steps.
|
Sorry @Artic0din, this account has used its review budget of 1,500,000 diff characters for the last 7 days. You can request another review in 57 minutes by commenting |
Code Review Completed! 🔥The code review was successfully completed. |
| if [[ "$(gh release view "$BETA_TAG" --json isPrerelease --jq .isPrerelease 2>/dev/null)" != "true" ]] || | ||
| ! gh release view "$BETA_TAG" --json body --jq .body | grep -Eq '^TestFlight: distributed .* on iOS(, tvOS, and macOS| and tvOS)\.$'; then | ||
| echo "::error::$BETA_TAG didn't reach TestFlight testers on both iOS and tvOS, so it can't be promoted." | ||
| ! gh release view "$BETA_TAG" --json body --jq .body | grep -Eq '^TestFlight: distributed .* on (iOS, |iOS and )?tvOS(, and macOS)?\.$'; then |
There was a problem hiding this comment.
Promotion rejects legacy builds distributed on tvOS and macOS
A legacy all run can reach tvOS testers even if iOS distribution fails, leaving a valid build blocked from promotion. Update the grep pattern to also accept the recorded suffix on tvOS and macOS.
Prompt for LLM
File .github/workflows/promote.yml, line 46:
Promotion rejects legacy builds distributed on tvOS and macOS
A legacy `all` run where iOS failed but tvOS and macOS distributed successfully recorded `on tvOS and macOS.`, which this check rejects even though the build reached tvOS testers. Accept that legacy suffix alongside the other recorded tvOS combinations.
Suggested code:
! gh release view "$BETA_TAG" --json body --jq .body | grep -Eq '^TestFlight: distributed .* on ((iOS, |iOS and )?tvOS(, and macOS)?|tvOS and macOS)\.$'; then
Talk to Kody by mentioning @kody
Was this suggestion helpful? React with 👍 or 👎 to help Kody learn from this interaction.
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.
Problem
Related issue: N/A
Validation tasks: none
Other clients: Android N/A (Apple release workflow only); Roku N/A (Apple release workflow only); Web N/A (Apple release workflow only)
This fork keeps only the Apple TV app, and since #62 pull request CI builds only tvOS.
The TestFlight Release workflow still built and uploaded the iPhone and Mac apps, so an iOS or macOS compile error would first show up during a release.
Approach
release.yml: removed the iOS and macOS build jobs, their distribution jobs, and theplatforminput. The prerelease title and the "TestFlight: distributed …" record line now say tvOS.promote.yml: the promotion gate used to require iOS and tvOS. It now requires tvOS, and still accepts older lines that also list iOS and macOS.docs/release/ci-release.md: dropped the iPhone and Mac steps.The Fastfile lanes for iOS and macOS stay, because
next_build_numberstill reads the build numbers of past iOS and macOS uploads so new builds don't reuse them.Validation
prepare,release,source,tvos,tvos-distribution,record.xcode-27runner label, which was already there.on tvOS.,on iOS and tvOS.andon iOS, tvOS, and macOS., and rejectson iOS.andon iOS and macOS..inputs.platform.Evidence
Nothing a user sees changes. Checked on commit bfd8878 with the static checks listed above.
Risks
Checklist
AI Disclosure
sync_signingnote was declined because that text is still accurate.ELI5
Releases now build and send out only the Apple TV app, since that's the only app this project keeps.