Skip to content

Commit f9aa069

Browse files
committed
Fix Firebase authentication with consistent credential paths
- Use runner.temp directory for credential file - Ensure GOOGLE_APPLICATION_CREDENTIALS points to correct location - Simplify deployment process with manual Firebase CLI
1 parent 3dd0d89 commit f9aa069

File tree

1 file changed

+13
-7
lines changed

1 file changed

+13
-7
lines changed

.github/workflows/deploy.yml

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,16 @@ jobs:
2525
- name: Build Astro site
2626
run: npm run build
2727

28-
- name: Deploy to Firebase
29-
uses: FirebaseExtended/action-hosting-deploy@v0
30-
with:
31-
repoToken: '${{ secrets.GITHUB_TOKEN }}'
32-
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT }}'
33-
channelId: live
34-
projectId: notifuse
28+
- name: Setup Firebase credentials
29+
run: |
30+
echo "$FIREBASE_SERVICE_ACCOUNT" > ${{ runner.temp }}/gcloud-key.json
31+
env:
32+
FIREBASE_SERVICE_ACCOUNT: ${{ secrets.FIREBASE_SERVICE_ACCOUNT }}
33+
34+
- name: Install Firebase CLI
35+
run: npm install -g firebase-tools
36+
37+
- name: Deploy to Firebase Hosting
38+
run: firebase deploy --only hosting --non-interactive --project notifuse
39+
env:
40+
GOOGLE_APPLICATION_CREDENTIALS: ${{ runner.temp }}/gcloud-key.json

0 commit comments

Comments
 (0)