Skip to content
This repository has been archived by the owner on Oct 7, 2022. It is now read-only.

try using service account config for deployment #80

Merged
merged 1 commit into from
Aug 23, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -61,4 +64,4 @@ workflows:
- build-and-test
filters:
branches:
only: master
only: fix-deploy