From e2fd0ef3e55fb3be81a07f94eb8d4ed3b33afa4f Mon Sep 17 00:00:00 2001 From: Kirill Taran Date: Sat, 16 Dec 2023 09:40:50 +0300 Subject: [PATCH] Update Release workflow to use secret keystore --- .github/workflows/release.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index af25b0a36..af4e98eea 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -26,6 +26,11 @@ jobs: - name: Validate Gradle wrapper uses: gradle/wrapper-validation-action@v1.0.5 + - name: Decrypt the keystore for signing + run: | + echo "${{ secrets.KEYSTORE_ENCRYPTED }}" > keystore.asc + gpg -d --passphrase "${{ secrets.KEYSTORE_PASSWORD }}" --batch keystore.asc > keystore.jks + - name: Build Release APK run: ./gradlew assembleRelease