Podbelly ships to two places:
- Firebase App Distribution — automatic on every push to
develop/main(debug APK,distribute.yml). This is the fast internal-tester loop. - Google Play — the Release to Play workflow (
release-play.yml) builds a signed release App Bundle (.aab) and uploads it with the Gradle Play Publisher plugin. It runs automatically on push tomain(publishing to theinternaltrack), and can also be run manually to target another track. Until the Play secrets are configured the publish step is skipped, so pushes tomainstay green.
This doc covers the Play path.
- Create a Google Play Developer account ($25 one-time) and complete identity verification. This can take a few days — do it first.
- Create the app (
com.podbelly), then complete the store listing, content rating, data-safety form, and a hosted privacy policy URL (required because the app bundles Firebase Analytics + Crashlytics). - Enable Play App Signing: Google holds the app signing key; you upload with an upload key (below).
New personal developer accounts (registered after Nov 2023) must run a closed test with ≥12 testers for 14 continuous days before production is unlocked. Start on the
internaltrack regardless — it's instant and needs no review.
Generate once and keep it safe (losing it means you can reset the upload key via Play support, but don't rely on that):
keytool -genkeypair -v -keystore upload.jks -alias upload \
-keyalg RSA -keysize 2048 -validity 10000
- In Google Cloud Console (the project linked to Play), create a service account and a JSON key.
- In Play Console → Users & permissions, invite that service account and grant it release permissions for this app.
Add these under Settings → Secrets and variables → Actions:
| Secret | What it is |
|---|---|
GOOGLE_SERVICES_JSON |
base64 of app/google-services.json (already used by other workflows) |
UPLOAD_KEYSTORE_BASE64 |
base64 of upload.jks (base64 -w0 upload.jks) |
UPLOAD_KEYSTORE_PASSWORD |
keystore password |
UPLOAD_KEY_ALIAS |
key alias (e.g. upload) |
UPLOAD_KEY_PASSWORD |
key password |
PLAY_SERVICE_ACCOUNT_JSON |
base64 of the service-account key JSON |
Automatic (the normal path): merge/promote to main. Every push to main
runs Release to Play, which builds the signed .aab and uploads it to the
internal track. versionCode/versionName are bumped on every commit
already, so each release carries a fresh version code (Play rejects duplicates).
Then promote internal → closed → production in the Play Console when ready.
Manual (to target another track): GitHub → Actions → Release to Play →
Run workflow, pick the track. Useful for pushing straight to production (or
beta) once your account is cleared for it.
Auto-publish targets
internalon purpose — production is a deliberate console promotion, and new personal accounts are gated behind the 12-testers/14-days rule anyway. To makemainpublish somewhere else by default, change theinternalfallback forPLAY_TRACKinrelease-play.yml.
buildTypes.release enables R8/minification. Run the Verify Release Build
workflow (or it runs automatically when proguard-rules.pro / build.gradle.kts
change) to confirm bundleRelease assembles and to download the .aab
artifact. If R8 strips something needed at runtime, add a keep rule to
app/proguard-rules.pro.
signingConfigs { release { ... } }readsUPLOAD_KEYSTORE_PATHand the password/alias env vars. When they're absent (local dev, PR CI) the config stays empty and release builds are produced unsigned — enough to verify assembly, not enough to publish.- The
play { }block readsPLAY_SERVICE_ACCOUNT_JSONandPLAY_TRACK; only thepublish*tasks require the credentials.