Repository navigation
Release: a banner, a full release page and a Telegram post, through Cloudflare - #47
Merged
Merged
Conversation
…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.
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.
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
RELEASE_PAT, and GitHub now refuses that token. The phone repo hit the same 403.What changes
tools/release/release_banner.pydrawsrelease/banners/v<version>.svgand 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/notes/v<version>.mdexists, it is used as is.release/, because/docs/is ignored in this public repo.sozo-tv-<version>-release.json(version, versionCode, APK name, whether to offer it to installed TVs).replacePrevious), so the download count carries on and a re-run no longer adds a second row.GITHUB_TOKEN. master has no rule against it.Tested
tools/release/release_page_test.py: 6 tests, now run in CI.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: publishwas chosen.