Google Play
What Forge needs to upload an Android build to Google Play: a service account with release access, the application id in project.toml, and a track.
Di halaman ini
Google Play takes builds through its Developer API, with no human in the
loop until a release reaches a track that has one. Forge uploads the
artifact, puts it on a track, and commits the edit — the same four calls a
fastlane supply run makes, without the Ruby.
What you need
- A service account with release access. In Play Console: Users and permissions → Invite new users → the service account's email, with Release to production, exclude devices, and use Play App Signing or the narrower Release apps to testing tracks. The account itself is made in Google Cloud (IAM → Service accounts), and the JSON key downloaded once.
- The application id, as in the Play URL:
org.example.game. It is[android] application_idinproject.toml, which the Android export needs anyway; Forge reads it off the build. - A track, picked on the project's Stores tab:
internal, the default and where a build should land first,alpha,betaorproduction.
The app must already exist in Play Console, with one release made by hand — Play will not accept the first upload of a new app through the API.
What Forge does with them
Nothing until you press the button. On a build's page, beside an Android artifact, Publish to Google Play asks once and then, on a builder: gets a token from the service account, opens an edit, uploads the artifact, puts its version code on the track as a completed release, and commits. A red upload says what Play said — most often a permission the service account does not have, or a version code Play already holds.
Bundles
Play takes the Android App Bundle, which it requires of new apps. A
project builds both by default: its Targets tab has Android APK and
Android AAB. The .aab is signed with your Android key, and its Publish to
Google Play uploads it to Play's bundles endpoint; the APK build has no Play
step. Keep Android APK ticked as well if you also publish to itch.io, which
takes the APK only, or install builds on a phone yourself.