Publish App to Play Store #32
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish App to Play Store | |
# Trigger the workflow on a schedule (every Monday at 12:00 UTC) | |
on: | |
schedule: | |
- cron: '0 12 * * 1' # Runs every Monday at 12:00 | |
push: | |
tags: | |
- 'internal_testing' # internal_testing Tag | |
jobs: | |
publish: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: 17 | |
distribution: temurin | |
- name: Retrieve secrets to files | |
env: | |
KEYSTORE: ${{ secrets.keystore }} | |
PLAYSTORE_JSON: ${{ secrets.PLAYSTORE_JSON }} | |
run: | | |
echo "$KEYSTORE" | base64 -d > kiwix-android.keystore | |
echo "$PLAYSTORE_JSON" > playstore.json | |
- name: Publish bundle in internal testing on Google Play | |
env: | |
KEY_ALIAS: ${{ secrets.KEY_ALIAS }} | |
KEY_PASSWORD: ${{ secrets.KEY_PASSWORD }} | |
KEY_STORE_PASSWORD: ${{ secrets.KEY_STORE_PASSWORD }} | |
run: | | |
./gradlew publishPlayStoreBundle --scan |