From c7058eb89c02072f2c33fdfae1aec58834d589c8 Mon Sep 17 00:00:00 2001 From: Jonathan Romano Date: Thu, 5 Sep 2024 17:20:58 -0400 Subject: [PATCH] Google play upload key signing --- .github/workflows/ci.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c1a892b..afbe47e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -143,13 +143,20 @@ jobs: distribution: 'temurin' java-version: '17' cache: 'gradle' + - name: Set up Android keystore + if: ${{ matrix.target == 'android' }} + env: + ANDROID_KEYSTORE_BASE64: ${{ secrets.GOOGLE_PLAY_KEYSTORE_BASE64 }} + run: echo $ANDROID_KEYSTORE_BASE64 | base64 --decode > "$RUNNER_TEMP/keystore.jks" - name: Build Android if: ${{ matrix.target == 'android' }} - run: npx cordova build ${{ matrix.target }} --${{ env.BUILD_TYPE == 'prod' && 'release' || 'debug' }} --device + run: | + npx cordova build ${{ matrix.target }} --${{ env.BUILD_TYPE == 'prod' && 'release' || 'debug' }} --device \ + --keystore="$RUNNER_TEMP/keystore.jks" --storePassword ${{ secrets.GOOGLE_PLAY_KEYSTORE_PASSWORD }} --alias upload --password ${{ secrets.GOOGLE_PLAY_UPLOAD_KEY_PASSWORD }} env: PARALLEL_BUILD: true - - name: Set up signing key + - name: Set up apple signing key if: ${{ matrix.target == 'ios' }} env: P12_PASSWORD: ${{ secrets.P12_PASSWORD }}