From d2284090ac46ebcfdc0337d550cafd21985336c8 Mon Sep 17 00:00:00 2001 From: Nils Reichardt Date: Wed, 13 Sep 2023 10:00:50 +0200 Subject: [PATCH] Fix export `GCLOUD_SERVICE_ACCOUNT_CREDENTIALS` for `sz deploy android` in `beta.yml` and `stable.yml` (#944) --- .github/workflows/beta.yml | 6 +++++- .github/workflows/stable.yml | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/beta.yml b/.github/workflows/beta.yml index a5dc55d6e..98ea6112c 100644 --- a/.github/workflows/beta.yml +++ b/.github/workflows/beta.yml @@ -192,7 +192,7 @@ jobs: fvm flutter pub global activate --source path "$CI_CD_DART_SCRIPTS_PACKAGE_PATH" echo $(pwd)/bin >> $GITHUB_PATH - - name: Set up Google Play credentials + - name: Set up Google Play credentials for Fastlane env: GOOGLE_PLAY_SERVICE_ACCOUNT_JSON: ${{ secrets.SHAREZONE_GOOGLE_PLAY_SERVICE_ACCOUNT_JSON }} working-directory: app @@ -201,6 +201,10 @@ jobs: echo $GOOGLE_PLAY_SERVICE_ACCOUNT_JSON > google-play-gserviceaccount.json - name: Deploy + env: + # Export the Google Play service account credentials as an environment + # variable for Codemagic CLI tools. + GCLOUD_SERVICE_ACCOUNT_CREDENTIALS: ${{ secrets.SHAREZONE_GOOGLE_PLAY_SERVICE_ACCOUNT_JSON }} run: | # When passing the changelog from GitHub Actions to the CLI, the line # breaks are escaped. We need to replace them with actual line breaks. diff --git a/.github/workflows/stable.yml b/.github/workflows/stable.yml index 73af1fb20..821718287 100644 --- a/.github/workflows/stable.yml +++ b/.github/workflows/stable.yml @@ -211,7 +211,7 @@ jobs: fvm flutter pub global activate --source path "$CI_CD_DART_SCRIPTS_PACKAGE_PATH" echo $(pwd)/bin >> $GITHUB_PATH - - name: Set up Google Play credentials + - name: Set up Google Play credentials for Fastlane env: GOOGLE_PLAY_SERVICE_ACCOUNT_JSON: ${{ secrets.SHAREZONE_GOOGLE_PLAY_SERVICE_ACCOUNT_JSON }} working-directory: app @@ -220,6 +220,10 @@ jobs: echo $GOOGLE_PLAY_SERVICE_ACCOUNT_JSON > google-play-gserviceaccount.json - name: Deploy + env: + # Export the Google Play service account credentials as an environment + # variable for Codemagic CLI tools. + GCLOUD_SERVICE_ACCOUNT_CREDENTIALS: ${{ secrets.SHAREZONE_GOOGLE_PLAY_SERVICE_ACCOUNT_JSON }} run: | # When passing the changelog from GitHub Actions to the CLI, the line # breaks are escaped. We need to replace them with actual line breaks.