From d06bca57c6a02eecb6e88d8804945276d9cd5f3c Mon Sep 17 00:00:00 2001 From: Kirill Taran Date: Wed, 19 Jun 2024 03:56:15 +0900 Subject: [PATCH] Firebase config (Google services) (#97) * Firebase config * Check GnuGPG version * Revert printing version * Fix google-services.json decrypt location --- .github/workflows/build.yml | 5 +++++ .github/workflows/release.yml | 7 ++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index cf3f22d0a..86cb44d19 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -56,6 +56,11 @@ jobs: echo "${{ secrets.KEYSTORE_ENCRYPTED }}" > keystore.asc gpg -d --passphrase "${{ secrets.KEYSTORE_PASSWORD }}" --batch keystore.asc > keystore.jks + - name: Decrypt the config for Google Services + run: | + echo "${{ secrets.GOOGLE_ENCRYPTED }}" > google-services.asc + gpg -d --passphrase "${{ secrets.GOOGLE_PASSWORD }}" --batch google-services.asc > app/google-services.json + - name: Build release APK run: ./gradlew assembleRelease diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index af4e98eea..ad73b4ed7 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -29,7 +29,12 @@ jobs: - name: Decrypt the keystore for signing run: | echo "${{ secrets.KEYSTORE_ENCRYPTED }}" > keystore.asc - gpg -d --passphrase "${{ secrets.KEYSTORE_PASSWORD }}" --batch keystore.asc > keystore.jks + gpg -d --passphrase "${{ secrets.KEYSTORE_PASSWORD }}" --batch keystore.asc > keystore.jks + + - name: Decrypt the config for Google Services + run: | + echo "${{ secrets.GOOGLE_ENCRYPTED }}" > google-services.asc + gpg -d --passphrase "${{ secrets.GOOGLE_PASSWORD }}" --batch google-services.asc > app/google-services.json - name: Build Release APK run: ./gradlew assembleRelease