Skip to content

Release: a banner, a full release page and a Telegram post, through Cloudflare - #47

Merged
professorDeveloper merged 1 commit into
masterfrom
release-like-phone
Nov 14, 2026
Merged

professorDeveloper merged 1 commit into
masterfrom
release-like-phone

Conversation

@professorDeveloper

Copy link
Copy Markdown
Owner

This brings the Android TV release (release.yml) up to the phone app's, and makes it work again: it is broken today in three places.

Why it is broken

  • Cloudflare answers GitHub's runners with a "Just a moment..." challenge (403). The version guard, the CDN upload and the updater call the API, so all three fail.
  • The tag and bump are pushed with RELEASE_PAT, and GitHub now refuses that token. The phone repo hit the same 403.

What changes

  • Banner. tools/release/release_banner.py draws release/banners/v<version>.svg and commits it with the bump. It uses the phone app's v3.2.0 artwork with the TV's words: ANDROID TV and the month, the version badge, a tagline and chips. The wording can be set in a <!-- banner --> comment in the notes.
  • Release page.
    • When release/notes/v<version>.md exists, it is used as is.
    • Otherwise a page is built in the phone app's v3.2.0 layout: badges, what's new by area (from merged titles), the APK table, how to install it on a TV, community links and a compare link.
    • release/, because /docs/ is ignored in this public repo.
  • Telegram. The banner goes out as a photo, with an HTML caption and buttons: the APK from the CDN, the release page (only when it is published), the channel and Discord. The APK follows, with what happened under it and how to install it.
  • Cloudflare. A challenge is a warning, not a failure.
    • The release carries sozo-tv-<version>-release.json (version, versionCode, APK name, whether to offer it to installed TVs).
    • The backend takes the published release itself with it (sozo-backend #88).
    • The version guard can be skipped safely when challenged: the backend never moves the updater to a lower versionCode.
  • Download row. It is updated in place (replacePrevious), so the download count carries on and a re-run no longer adds a second row.
  • Token. The tag and bump are pushed with GITHUB_TOKEN. master has no rule against it.

Tested

  • tools/release/release_page_test.py: 6 tests, now run in CI.
  • The 1.0.4 banner was rendered and checked by eye.
  • The Telegram step ran against a local mock API.
  • actionlint is clean.

Order: merge backend #88 first, then this. After that, Actions → Release → Telegram builds, tags, drafts, uploads and announces. Pressing Publish puts the build on the download page within 10 minutes, and on TVs if updater: publish was chosen.

…loudflare

Brings the Android TV release up to the phone app's:

- Banner: tools/release/release_banner.py draws release/banners/v<version>.svg
  from the phone app's artwork (ANDROID TV, the version, a tagline, chips),
  committed with the bump.
- Release page: release/notes/v<version>.md when written, otherwise a page
  built from what was merged since the last tag, with the banner on top,
  the APK table and how to install it on a TV.
- Telegram: the banner as a photo with an HTML caption and buttons, then the
  APK with what happened under it.

Cloudflare answers GitHub's runners with a challenge page, which broke the
version guard, the CDN upload and the updater. A challenge is now a warning,
and the release carries sozo-tv-<version>-release.json so the backend takes
the published release itself. The CDN row is updated in place
(replacePrevious), so the download count carries on.

The tag and bump are pushed with GITHUB_TOKEN; the RELEASE_PAT secret is
refused by GitHub.
@professorDeveloper
professorDeveloper merged commit 39dfb61 into master Nov 14, 2026
3 checks passed
@professorDeveloper
professorDeveloper deleted the release-like-phone branch November 14, 2026 13:35
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