Skip to content

Commit

Permalink
Authenticate deployment through a service account
Browse files Browse the repository at this point in the history
The Firebase token no longer works.
  • Loading branch information
martendo committed Feb 25, 2024
1 parent df97601 commit 30752d6
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/build-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ jobs:
- name: Install deploy dependencies
run: npm install -g firebase-tools

- name: Create service account key file
run: echo '${{ secrets.GSA_KEY }}' > "$HOME"/gsakey.json

- name: Deploy to Firebase Hosting
run: firebase deploy --token "$FIREBASE_TOKEN" --only hosting
env:
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}
run: export GOOGLE_APPLICATION_CREDENTIALS="$HOME"/gsakey.json && firebase deploy --only hosting

0 comments on commit 30752d6

Please sign in to comment.