-
Notifications
You must be signed in to change notification settings - Fork 2
39 lines (38 loc) · 1.05 KB
/
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
37
38
39
name: Deploy
on:
push:
branches:
- master
workflow_dispatch:
jobs:
deploy:
name: Deploy to Github Pages
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: '14.x'
- name: Config
run: |
git config --global user.email "ci@github.com"
git config --global user.name "CI user"
- name: Install
run: npm ci
- name: Build
env:
NODE_APP_INSTANCE: podlovers
NODE_OPTIONS: --unhandled-rejections=none --max-old-space-size=4096
run: npm run build
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: '18.x'
- name: Deploy
uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: '${{ secrets.GITHUB_TOKEN }}'
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_PODLOVERS_FRONTEND }}'
projectId: podlovers-frontend
channelId: live