forked from nodejs/nodejs.dev
-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (34 loc) · 980 Bytes
/
firebase-deployment.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
37
38
39
40
41
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
- uses: jongwooo/[email protected]
with:
key: firebase-deployment-gatsby-ubuntu-latest
- name: Build Gatsby
run: npm run build-ci
- uses: FirebaseExtended/[email protected]
with:
repoToken: '${{ secrets.GITHUB_TOKEN }}'
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_NODEJS_INFRASTRUCTURE }}'
channelId: live
projectId: '${{ secrets.GCP_PROJECT_ID }}'