diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 63ef94a74..2236467f0 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -138,6 +138,22 @@ jobs: az storage blob download --account-name $ACCOUNT_NAME --container-name $CONTAINER_NAME \ --name authenticator_play_firebase-creds.json --file ${{ github.workspace }}/secrets/authenticator_play_firebase-creds.json --output none + - name: Download Play Store credentials + if: ${{ inputs.publish-to-play-store }} + env: + ACCOUNT_NAME: bitwardenci + CONTAINER_NAME: mobile + run: | + mkdir -p ${{ github.workspace }}/secrets + + az storage blob download --account-name $ACCOUNT_NAME --container-name $CONTAINER_NAME \ + --name authenticator_play_store-creds.json --file ${{ github.workspace }}/secrets/authenticator_play_store-creds.json --output none + + - name: Verify Play Store credentials + if: ${{ inputs.publish-to-play-store }} + run: | + bundle exec fastlane run validate_play_store_json_key + - name: Validate Gradle wrapper uses: gradle/actions/wrapper-validation@cc4fc85e6b35bafd578d5ffbc76a5518407e1af0 # v4.2.1 @@ -255,7 +271,7 @@ jobs: - name: Publish release bundle to Google Play Store if: ${{ inputs.publish-to-play-store && matrix.variant == 'aab' }} env: - PLAY_STORE_CREDS_FILE: ${{ github.workspace }}/secrets/authenticator_play_firebase-creds.json + PLAY_STORE_CREDS_FILE: ${{ github.workspace }}/secrets/authenticator_play_store-creds.json run: | bundle exec fastlane publishReleaseToGooglePlayStore \ serviceCredentialsFile:${{ env.PLAY_STORE_CREDS_FILE }} \