-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (39 loc) · 1.14 KB
/
firebase-deploy.yml
File metadata and controls
51 lines (39 loc) · 1.14 KB
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: Deploy to Firebase Hosting
on:
push:
branches:
- main
tags:
- '*'
pull_request:
branches:
- main
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Node.js for pnpm
uses: actions/setup-node@v2
with:
node-version: '22.17'
- name: Install pnpm
run: npm install -g pnpm@~10.12
- name: Install Firebase CLI
run: npm install -g firebase-tools@~14.11
- name: Install Frontend dependencies
run: pnpm install
- uses: 'google-github-actions/auth@v2'
with:
credentials_json: ${{ secrets.FIREBASE_SERVICE_ACCOUNT_THINGS_TO_COMPLETE }}
- name: Build Frontend
run: pnpm run build
- name: Deploy Frontend to Firebase Hosting
run: |
firebase deploy -f --only hosting --project things-to-complete
- name: Install Functions dependencies
run: npm install
working-directory: ./functions
- name: Deploy functions
run: |
firebase deploy -f --only functions --project things-to-complete