Skip to content

Merge pull request #50 from AChep/l10n_crowdin_action #6

Merge pull request #50 from AChep/l10n_crowdin_action

Merge pull request #50 from AChep/l10n_crowdin_action #6

name: "🤖 Daily tag -> Play Store internal track"
on:
push:
tags:
- 'd*'
jobs:
build-play-store-internal:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: "Set up JDK 17"
id: setup-java
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
cache: 'gradle'
- id: vars
run: |
echo ::set-output name=tag::${GITHUB_REF:11}
- name: "Prepare env"
run: |
echo ${{ secrets.KEYSTORE_B64 }} | base64 -d | zcat >> androidApp/keyguard-release.keystore
echo ${{ secrets.KEYSTORE_PROPS_B64 }} | base64 -d | zcat >> androidApp/keyguard-release.properties
echo ${{ secrets.GOOGLE_SERVICES }} | base64 -d | zcat >> androidApp/google-services.json
echo ${{ secrets.SERVICE_ACCOUNT_B64 }} | base64 -d | zcat >> service-account-google.json
echo "" >> gradle.properties
echo versionDate=${{ steps.vars.outputs.tag }} >> gradle.properties
echo buildkonfig.flavor=release >> gradle.properties
- name: "Check and Build licenses"
uses: eskatos/gradle-command-action@v2
env:
JAVA_HOME: ${{ steps.setup-java.outputs.path }}
with:
arguments: :androidApp:licenseeAndroidPlayStoreRelease
- name: "Move licenses"
run: |
mv -f androidApp/build/reports/licensee/androidPlayStoreRelease/artifacts.json common/src/commonMain/resources/MR/files/licenses.json
- name: "Build release bundle"
uses: eskatos/gradle-command-action@v2
env:
JAVA_HOME: ${{ steps.setup-java.outputs.path }}
with:
arguments: :androidApp:bundlePlayStoreRelease
- name: "Distribute on Play Store"
uses: r0adkll/upload-google-play@v1.1.2
with:
serviceAccountJson: service-account-google.json
packageName: com.artemchep.keyguard
releaseFiles: androidApp/build/outputs/bundle/playStoreRelease/androidApp-playStore-release.aab
track: internal