From 108c6a0448909f256670909923dba601b44ae097 Mon Sep 17 00:00:00 2001 From: Wali Morris Date: Sat, 3 Aug 2024 19:09:28 -0700 Subject: [PATCH] add base64 to gcloud json to keep strictly keep the structure of the json --- .github/workflows/deploy.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index babdda1..a5dcea7 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -32,8 +32,8 @@ jobs: aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} aws-region: ${{ secrets.AWS_REGION }} - - name: Set up Google Cloud credentials - run: echo "${{ secrets.GOOGLE_APPLICATION_CREDENTIALS_JSON }}" > gcloud-key.json + - name: Decode Google Cloud credentials + run: echo "${{ secrets.GOOGLE_APPLICATION_CREDENTIALS_JSON }}" | base64 --decode > gcloud-key.json - name: Set GOOGLE_APPLICATION_CREDENTIALS environment variable run: echo "GOOGLE_APPLICATION_CREDENTIALS=$GITHUB_WORKSPACE/gcloud-key.json" >> $GITHUB_ENV