This action will help you upload an Android .apk (Android App) file to the Google Play Console using the Google Play Developer API v3.
- Clone the project
create .envfile and mentionprivate_key,client_email,releaseNotes,track,releaseFilePathvariables- replace the
core.getInput('variable')withprocess.env.variableand importrequire('dotenv').config() - Keep the apk which you want to upload in release folder (default name: app.apk)
npm installtscfor building and compiling typescript files.npm testfor running test casesnpm test -- --coveragefor seeing the coverage of test casesnpm startfor running the script which will upload apk into google play store
Required: The service account private key.
Required: The service account client email.
Required: The Android release file to upload (path of .apk)
default: This is automated release. Pass the value if you want to change the release notes.
default: internal.
Values: alpha, beta, internal, production
- name: upload to play store
uses: hitz-group/publish-google-play-action@master
with:
client_email: ${{ secrets.GPLAY_SERVICE_ACCOUNT_EMAIL }}
private_key: ${{ secrets.GPLAY_SERVICE_ACCOUNT_PRIVATE_KEY }}
releaseFilePath: "path/to/apk"
releaseNotes: "this is the automated release"
track: internal