From 86b264f7a1d0c22b4e8872075d2e951d0f43bcec Mon Sep 17 00:00:00 2001 From: Robert Helmer Date: Sun, 22 Aug 2021 23:36:20 -0700 Subject: [PATCH] try using service account config for deployment --- .circleci/config.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 2c90bd64..74fa68f1 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -43,9 +43,12 @@ jobs: steps: - attach_workspace: at: . + - run: + name: Create Service Account key JSON + command: echo $GSA_KEY > "$HOME"/gcloud.json - run: name: Firebase Deploy - command: ./node_modules/.bin/firebase deploy --only hosting --token "$FIREBASE_TOKEN" + command: GOOGLE_APPLICATION_CREDENTIALS="$HOME"/gcloud.json ./node_modules/.bin/firebase deploy --only hosting workflows: # Below is the definition of your workflow. # Inside the workflow, you provide the jobs you want to run, e.g this workflow runs the build-and-test job above. @@ -61,4 +64,4 @@ workflows: - build-and-test filters: branches: - only: master + only: fix-deploy