Skip to content

ci(release): ship only the tvOS app to TestFlight - #68

Merged
Artic0din merged 1 commit into
mainfrom
ci/release-tvos-only
Nov 24, 2026
Merged

Artic0din merged 1 commit into
mainfrom
ci/release-tvos-only

Conversation

@Artic0din

Copy link
Copy Markdown
Owner

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 the platform input. 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_number still reads the build numbers of past iOS and macOS uploads so new builds don't reuse them.

Validation

  • Both workflows parse, and the job graph is now prepare, release, source, tvos, tvos-distribution, record.
  • actionlint: the only warning is the self-hosted xcode-27 runner label, which was already there.
  • I ran the promote regex against sample lines. It accepts on tvOS., on iOS and tvOS. and on iOS, tvOS, and macOS., and rejects on iOS. and on iOS and macOS..
  • A repo-wide grep finds no remaining references to the removed jobs or to inputs.platform.
  • I have not run a release on GitHub.

Evidence

Nothing a user sees changes. Checked on commit bfd8878 with the static checks listed above.

Risks

  • Release runs no longer upload iPhone or Mac builds. Existing TestFlight builds for those platforms are not affected.
  • The next run's build number still accounts for past iOS and macOS uploads.

Checklist

  • I read and can explain the complete diff.
  • This pull request addresses one concern.
  • The Evidence section shows every change a user can see, or how I checked a change nobody sees.

AI Disclosure

  • Harness: T3 Code running Claude Code
  • Tool(s): Claude Code
  • Model(s): claude-opus-5-5 (implementation); claude-sonnet-5-5 (review)
  • Involvement: Fully AI-generated, not yet human verified
  • Adversarial review: independent read-only review of the diff by claude-sonnet-5-5 before commit. No problems found. Its suggestion to reword the build-number line in the docs was applied. Its suggestion about the sync_signing note 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.

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.
@sourcery-ai

sourcery-ai Bot commented Nov 24, 2026

Copy link
Copy Markdown

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 @sourcery-ai review. Upgrade to get a review now.

@plaintext-review

plaintext-review Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

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

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

kody code-review Bug medium

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.

​

​

@Artic0din
Artic0din merged commit d315ef9 into main Nov 24, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant