-
Notifications
You must be signed in to change notification settings - Fork 88
27 lines (26 loc) · 1.11 KB
/
deploy-to-firebase-on-pr.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
# This file was auto-generated by the Firebase CLI
# https://github.com/firebase/firebase-tools
name: Deploy to Firebase on PR
on: pull_request
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_preview:
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 }}'
projectId: planning-poker-b946f
target: planning-poker-agile
env:
FIREBASE_CLI_PREVIEWS: hostingchannels