-
Notifications
You must be signed in to change notification settings - Fork 80
31 lines (30 loc) · 1.16 KB
/
deploy-to-firebase-on-master.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 to Firebase
'on':
push:
branches:
- master
env:
REACT_APP_FB_API_KEY: '${{ secrets.REACT_APP_FB_API_KEY }}'
REACT_APP_FB_AUTH_DOMAIN: '${{ secrets.REACT_APP_FB_AUTH_DOMAIN }}'
REACT_APP_FB_PROJECT_ID: '${{ secrets.REACT_APP_FB_PROJECT_ID }}'
REACT_APP_FB_STORAGE_BUCKET: '${{ secrets.REACT_APP_FB_STORAGE_BUCKET }}'
REACT_APP_FB_MESSAGING_SENDER_ID: '${{ secrets.REACT_APP_FB_MESSAGING_SENDER_ID }}'
REACT_APP_FB_APP_ID: '${{ secrets.REACT_APP_FB_APP_ID }}'
REACT_APP_FB_MEASUREMENT_ID: '${{ secrets.REACT_APP_FB_MEASUREMENT_ID }}'
jobs:
build_and_deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: yarn && yarn build
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: '${{ secrets.GITHUB_TOKEN }}'
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_PLANNING_POKER_B946F }}'
channelId: live
projectId: planning-poker-b946f
target: planning-poker-agile
env:
FIREBASE_CLI_PREVIEWS: hostingchannels