-
-
Notifications
You must be signed in to change notification settings - Fork 190
31 lines (30 loc) · 1.02 KB
/
deploy_website.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
# This file was auto-generated by the Firebase CLI
# https://github.com/firebase/firebase-tools
name: Deploy website to Firebase Hosting on merge
'on':
push:
branches:
- website
jobs:
build_and_deploy:
runs-on: ubuntu-latest
env:
REACT_APP_GTAG_ID: ${{ secrets.REACT_APP_GTAG_ID }}
REACT_APP_DOC_SEARCH_KEY: ${{ secrets.REACT_APP_DOC_SEARCH_KEY }}
REACT_APP_DOC_SEARCH_APP_ID: ${{ secrets.REACT_APP_DOC_SEARCH_APP_ID }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '16'
- run: yarn install --no-immutable
- run: cd website && yarn && yarn build
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
entryPoint: website
repoToken: '${{ secrets.GITHUB_TOKEN }}'
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_FIRECMS_DEMO_27150 }}'
channelId: live
projectId: firecms-demo-27150
env:
FIREBASE_CLI_PREVIEWS: hostingchannels