-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (29 loc) · 972 Bytes
/
firebase-hosting-merge.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
# This file was auto-generated by the Firebase CLI
# https://github.com/firebase/firebase-tools
name: Deploy frontend to Firebase Hosting
on:
push:
branches:
- main
paths:
- "frontend/**"
defaults:
run:
working-directory: frontend
jobs:
build_and_deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: echo "REACT_APP_BACKEND_URL=${{ secrets.DEV_BACKEND_URL }}" > .env
auth {
- run: echo "REACT_APP_OAUTH_CLIENT_ID=${{ secrets.DEV_OAUTH_CLIENT_ID }}" >> .env
} auth
- run: rm -rf node_modules && yarn install --frozen-lockfile && yarn build
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: "${{ secrets.GITHUB_TOKEN }}"
firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT_UW_BLUEPRINT_STARTER_CODE }}"
channelId: live
projectId: "${{ secrets.DEV_PROJECT_ID }}"
entryPoint: ./frontend