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 .env
file and mentionprivate_key
,client_email
,releaseNotes
,track
,releaseFilePath
variables- replace the
core.getInput('variable')
withprocess.env.variable
and importrequire('dotenv').config()
- Keep the apk which you want to upload in release folder (default name: app.apk)
npm install
tsc
for building and compiling typescript files.npm test
for running test casesnpm test -- --coverage
for seeing the coverage of test casesnpm start
for 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