Skip to content

Commit

Permalink
Fix export GCLOUD_SERVICE_ACCOUNT_CREDENTIALS for `sz deploy androi…
Browse files Browse the repository at this point in the history
…d` in `beta.yml` and `stable.yml` (#944)
  • Loading branch information
nilsreichardt authored Sep 13, 2023
1 parent 8c5afbb commit d228409
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/beta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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.
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/stable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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.
Expand Down

0 comments on commit d228409

Please sign in to comment.