Skip to content

Commit 3dd0d89

Browse files
committed
Use Firebase GitHub Action for deployment
- Replace manual Firebase CLI authentication with official Firebase action - Simplifies credential handling and deployment process - Uses FirebaseExtended/action-hosting-deploy for robust deployment
1 parent b4a4ed0 commit 3dd0d89

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

.github/workflows/deploy.yml

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

28-
- name: Create service account file
29-
run: echo '${{ secrets.FIREBASE_SERVICE_ACCOUNT }}' > ${{ github.workspace }}/gcloud-service-key.json
30-
3128
- name: Deploy to Firebase
32-
run: |
33-
npm install -g firebase-tools
34-
firebase deploy --only hosting --non-interactive
35-
env:
36-
GOOGLE_APPLICATION_CREDENTIALS: ${{ github.workspace }}/gcloud-service-key.json
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

0 commit comments

Comments
 (0)