-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (29 loc) · 922 Bytes
/
deploy.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: Deploy Firebase Function
on:
push:
branches:
- main
jobs:
deploy:
name: Deploy Firebase Functions
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/[email protected]
- name: Install PNPM and dependencies
uses: pnpm/action-setup@v4
with:
version: 9
run_install: true
- name: Set up Node.js
uses: actions/[email protected]
with:
node-version: '20'
cache: 'pnpm'
- name: Install Firebase CLI
uses: w9jds/setup-firebase@main
with:
tools-version: 13.27.0
firebase_token: ${{ secrets.FIREBASE_SERVICE_ACCOUNT_ANA_CARDS_OG }}
- name: Deploy to Firebase Functions
run: firebase deploy --only functions --project ${{ secrets.FIREBASE_PROJECT_ID }}