-
Notifications
You must be signed in to change notification settings - Fork 2
44 lines (43 loc) · 1.58 KB
/
firebase-hosting-merge-prod.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
42
43
44
# This file was auto-generated by the Firebase CLI
# https://github.com/firebase/firebase-tools
name: Deploy to Firebase Hosting on merge
'on':
push:
branches:
- main
paths-ignore:
- 'README.md'
- 'firestore.rules'
- 'storage.rules'
- 'firestore.indexes.json'
- '.env.example'
- 'functions/**'
- '.github/**'
- '.vscode/**'
jobs:
build_and_deploy:
runs-on: ubuntu-latest
env:
HTTPS: true
REACT_APP_FIREBASE_API_KEY: '${{ secrets.REACT_APP_FIREBASE_API_KEY }}'
REACT_APP_FIREBASE_AUTH_DOMAIN: '${{ secrets.REACT_APP_FIREBASE_AUTH_DOMAIN }}'
REACT_APP_FIREBASE_PROJECT_ID: '${{ secrets.REACT_APP_FIREBASE_PROJECT_ID }}'
REACT_APP_FIREBASE_STORAGE_BUCKET: '${{ secrets.REACT_APP_FIREBASE_STORAGE_BUCKET }}'
REACT_APP_FIREBASE_MESSAGING_SENDER_ID: '${{ secrets.REACT_APP_FIREBASE_MESSAGING_SENDER_ID }}'
REACT_APP_FIREBASE_API_ID: '${{ secrets.REACT_APP_FIREBASE_API_ID }}'
REACT_APP_FIREBASE_MEASUREMENT_ID: '${{ secrets.REACT_APP_FIREBASE_MEASUREMENT_ID }}'
REACT_APP_ENV: 'prod'
steps:
- uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '16'
- run: yarn install && yarn lint && yarn build
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: '${{ secrets.GITHUB_TOKEN }}'
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_SCROLLWEB_CC9B4 }}'
target: scrollbar
channelId: live
projectId: scrollweb-cc9b4