Merge pull request #245 from tonykolomeytsev/compose-shimmers #194
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: Build release for Google Play | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
build: | |
name: Release Build | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: 17 | |
distribution: adopt | |
- name: Setup Gradle | |
uses: gradle/gradle-build-action@v2 | |
with: | |
cache-read-only: false | |
- name: Materialize sensitive info | |
run: | | |
.ci/materialize.sh $GOOGLE_SERVICES modules/app/google-services.json | |
.ci/materialize.sh $KEY_STORE_FILE keystore.jks | |
env: | |
GOOGLE_SERVICES: ${{ secrets.GOOGLE_SERVICES }} | |
KEY_STORE_FILE: ${{ secrets.KEY_STORE_FILE }} | |
- name: Release tests | |
run: ./gradlew -Pci testReleaseUnitTest | |
env: | |
MAP_KEY: ${{ secrets.MAP_KEY }} | |
- name: Build Release APK | |
run: ./gradlew -Pci :app:assembleRelease | |
env: | |
MAP_KEY: ${{ secrets.MAP_KEY }} | |
KEY_ALIAS: ${{ secrets.ALIAS }} | |
KEY_STORE_PASSWORD: ${{ secrets.KEY_STORE_PASSWORD }} | |
KEY_PASSWORD: ${{ secrets.KEY_PASSWORD }} | |
- name: Upload Release APK | |
uses: actions/upload-artifact@v3 | |
with: | |
name: App Release | |
path: modules/app/build/outputs/apk/release/app-release.apk |