A GitHub Action to upload an Android App Bundle (.aab file) to the Google Play Store using the Play Developer API.
Uploading an Android App Bundle (.aab) to the Google Play Store is an essential step in the Android development process. Doing this manually can be time-consuming and error-prone, especially for CI/CD pipelines. This GitHub Action automates the upload process using the Play Developer API, making it convenient and reliable.
This action allows you to automatically upload an Android App Bundle to the Google Play Store. You can specify various parameters like the package name, track for the release, and release status. It supports both public and private repositories.
🏳️ See the inputs section for detailed descriptions.
- name: Upload Android App Bundle to Google Play Store
id: upload_aab
uses: KevinRohn/[email protected]
with:
service_account_json: ${{ secrets.SERVICE_ACCOUNT_JSON }}
package_name: "com.example.myapp"
aab_file_path: "./build/outputs/bundle/release/app-release.aab"
track: "internal"
release_status: "draft"
- name: Upload .aab to Internal Track
id: upload_internal
uses: KevinRohn/[email protected]
with:
service_account_json: ${{ secrets.SERVICE_ACCOUNT_JSON }}
package_name: "com.example.myapp"
aab_file_path: "./build/outputs/bundle/release/app-release.aab"
track: "internal"
release_status: "draft"
- name: Upload .aab to Production Track
id: upload_production
uses: KevinRohn/[email protected]
with:
service_account_json: ${{ secrets.SERVICE_ACCOUNT_JSON }}
package_name: "com.example.myapp"
aab_file_path: "./build/outputs/bundle/release/app-release.aab"
track: "production"
release_status: "completed"
The action supports the following inputs:
-
service_account_json
Base64 encoded service account JSON key for Google Cloud with access to the Play Developer API.
Required: true -
package_name
Android package name as defined inAndroidManifest.xml
.
Required: true -
aab_file_path
File path to the Android App Bundle (.aab) you wish to upload.
Required: true -
track
The track where you want to upload the.aab
file. Available options:internal
,alpha
,beta
,production
,rollout
.
Required: true -
release_status
Release status of the app. Available options:draft
,completed
,halted
,inProgress
.
Required: true
The action does not produce any outputs at the moment. Successful execution will print a success message in the workflow logs.
Feel free to contribute to the action's development or report issues on the GitHub repository.