Skip to content

Commit d172b23

Browse files
committed
fix(ci): use service account for firebase auth
1 parent 8888069 commit d172b23

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/deploy-prod.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,13 @@ jobs:
2525
node-version: ${{ matrix.node-version }}
2626
- run: yarn install && yarn build
2727
- run: yarn release
28-
- run: cd functions && yarn install && yarn deploy:config:prod --token ${{ secrets.FIREBASE_TOKEN }}
29-
- run: yarn deploy:prod --token ${{ secrets.FIREBASE_TOKEN }}
28+
- name: Authenticate with Google Cloud
29+
uses: google-github-actions/auth@v2
30+
with:
31+
credentials_json: ${{ secrets.GOOGLE_APPLICATION_CREDENTIALS }}
32+
33+
- run: cd functions && yarn install && yarn deploy:config:prod
34+
- run: yarn deploy:prod
3035
- name: Upload Release Asset
3136
id: upload-release-asset
3237
uses: shogo82148/actions-upload-release-asset@v1

0 commit comments

Comments
 (0)