Skip to content

Commit 0de3187

Browse files
SunkenInTimeclaude
andcommitted
ci(mobile): frame the APK mirror as the nightly Android build
The alpha track carries the v2-preview builds, the only Android builds that can connect to a nightly server. Name the release android-nightly and tell readers who it is for, instead of a generic preview label. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
1 parent eaefa45 commit 0de3187

3 files changed

Lines changed: 18 additions & 15 deletions

File tree

‎.github/scripts/mirror-play-apk.cjs‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ async function uploadApk({ token, appUrl, build, tag, apkName, notes, release })
117117
"--prerelease",
118118
"--latest=false",
119119
"--title",
120-
"T3 Code for Android (preview)",
120+
"T3 Code for Android (nightly)",
121121
"--notes",
122122
notes,
123123
);
@@ -147,9 +147,9 @@ async function main() {
147147
const safeName = build.versionName.replace(/[^0-9A-Za-z.]+/g, "-").replace(/^-|-$/g, "");
148148
const apkName = `t3code-android-${safeName}-${build.versionCode}.apk`;
149149
const notes = [
150-
`Sideloadable T3 Code for Android, mirrored from the Google Play ${trackName} track. Current build: ${build.versionName} (${build.versionCode}).`,
150+
`T3 Code for Android that works with nightly servers, mirrored from the Google Play ${trackName} track. Current build: ${build.versionName} (${build.versionCode}).`,
151151
"",
152-
"Google Play signed this APK with the same key as the Play Store app, so a Play Store install can update it in place. Only the newest build is kept here.",
152+
"The Play Store release can't connect to a nightly server yet. Install this APK if you can't join the Play testing group. Only the newest build is kept here.",
153153
].join("\n");
154154

155155
const release = readRelease(tag);

‎.github/workflows/mobile-android-apk.yml‎

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
name: Mobile Android APK
22

3-
# Publishes the newest Play testing build as a sideloadable APK on the rolling
4-
# "android-preview" prerelease, for testers who can't join the Play testing
5-
# group. Play re-signs uploaded bundles with the app signing key, so its
3+
# Publishes the newest nightly-compatible Android build as a sideloadable APK
4+
# on the rolling "android-nightly" prerelease, for nightly users who can't join
5+
# the Play testing group. Play re-signs uploaded bundles with the app signing key, so its
66
# universal APK matches the Play Store install and needs no signing secrets
77
# here. EAS submits asynchronously (--no-wait), so this polls Play instead of
88
# chaining off mobile-eas-production.yml; runs with nothing new exit early.
@@ -25,9 +25,10 @@ jobs:
2525
contents: write
2626
env:
2727
PACKAGE_NAME: com.t3tools.t3code
28-
# eas.json submits v2-preview builds here.
28+
# eas.json submits v2-preview builds here; they speak the orchestration
29+
# protocol nightly servers use, which the Play Store release can't.
2930
PLAY_TRACK: alpha
30-
RELEASE_TAG: android-preview
31+
RELEASE_TAG: android-nightly
3132
steps:
3233
- id: credentials
3334
name: Check for Play credentials

‎docs/operations/release.md‎

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -222,13 +222,15 @@ Git deployments remain disabled in `apps/marketing/vercel.ts`.
222222

223223
## Android APK mirror
224224

225-
`.github/workflows/mobile-android-apk.yml` checks Google Play hourly and publishes the
226-
newest build on the `alpha` track to the rolling `android-preview` prerelease. The APK is the
227-
universal APK Play generates and signs from the uploaded bundle, so no signing key lives in
228-
GitHub. The job skips itself until `GOOGLE_PLAY_SERVICE_ACCOUNT_JSON` holds a Play service
229-
account key with the "Release to production, exclude devices, and use Play App Signing"
230-
permission, which downloading generated APKs requires. The job reads tracks without opening a
231-
Play edit, so it can share the service account EAS Submit uses.
225+
`.github/workflows/mobile-android-apk.yml` checks Google Play hourly and publishes the newest
226+
build on the `alpha` track to the rolling `android-nightly` prerelease, for nightly users who
227+
can't join the Play testing group. Those v2-preview builds are the only Android builds that can
228+
connect to a nightly server. The APK is the universal APK Play generates and signs from the
229+
uploaded bundle, so no signing key lives in GitHub. The job skips itself until
230+
`GOOGLE_PLAY_SERVICE_ACCOUNT_JSON` holds a Play service account key with the "Release to
231+
production, exclude devices, and use Play App Signing" permission, which downloading generated
232+
APKs requires. The job reads tracks without opening a Play edit, so it can share the service
233+
account EAS Submit uses.
232234

233235
## Hosted web app release deployment
234236

0 commit comments

Comments
 (0)