Skip to content

Commit edcfc8f

Browse files
committed
fix: streamline Firebase functions deployment using action instead of manual commands
1 parent fdabeec commit edcfc8f

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

.github/workflows/firebase-deploy.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,7 @@ jobs:
4242
projectId: things-to-complete
4343

4444
- name: Deploy Functions
45-
run: |
46-
npm install -g firebase-tools
47-
echo $FIREBASE_SERVICE_ACCOUNT > ./firebase-service-account.json}
48-
firebase login:ci --service-account=./firebase-service-account.json
49-
firebase deploy --only functions
50-
env:
51-
FIREBASE_SERVICE_ACCOUNT: "${{ secrets.FIREBASE_SERVICE_ACCOUNT_THINGS_TO_COMPLETE }}"
52-
FIREBASE_PROJECT_ID: things-to-complete
45+
uses: aronep6/action-functions-deploy@1.0.0
46+
with:
47+
serviceAccountKey: "${{ secrets.FIREBASE_SERVICE_ACCOUNT_THINGS_TO_COMPLETE }}"
48+
projectId: things-to-complete

0 commit comments

Comments
 (0)