forked from nodejs/nodejs.dev
-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (41 loc) · 1.12 KB
/
firebase-deployment.yml
File metadata and controls
49 lines (41 loc) · 1.12 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
name: Deploy to Firebase Production
on:
push:
branches:
- main
jobs:
build-and-deploy:
runs-on: ubuntu-latest
environment:
name: firebase
url: https://nodejs.dev/
steps:
- name: Git Checkout
uses: actions/[email protected]
with:
ref: main
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
cache: 'npm'
- name: Install NPM packages
run: npm ci
- name: Gatsby Cache Folder
uses: actions/cache@v3
with:
key: cache-folder-ubuntu-latest
path: .cache
- name: Gatsby Public Folder
uses: actions/cache@v3
with:
key: public-folder-ubuntu-latest
path: public
- name: Build Gatsby
run: npm run build-ci
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: '${{ secrets.GITHUB_TOKEN }}'
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_NODEJS_INFRASTRUCTURE }}'
channelId: live
projectId: nodejs-infrastructure