-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (37 loc) · 1.24 KB
/
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
34
35
36
37
38
39
# 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:
- master
env:
REACT_APP_APIKEY: '${{ secrets.REACT_APP_APIKEY }}'
REACT_APP_AUTHDOMAIN: '${{ secrets.REACT_APP_AUTHDOMAIN }}'
REACT_APP_PID: '${{ secrets.REACT_APP_PID }}'
REACT_APP_SB: '${{ secrets.REACT_APP_SB }}'
REACT_APP_SID: '${{ secrets.REACT_APP_SID }}'
REACT_APP_APPID: '${{ secrets.REACT_APP_APPID }}'
REACT_APP_MID: '${{ secrets.REACT_APP_MID }}'
REACT_APP_RECAPTCHA_SITE_KEY: '${{ secrets.REACT_APP_RECAPTCHA_SITE_KEY }}'
jobs:
build_and_deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v2
- name: setup node
uses: actions/setup-node@v3
with:
node-version: 16
- name: Install Dependencies
run: npm install
- name: Build
run: npm run build
- name: Deploy
uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: '${{ secrets.GITHUB_TOKEN }}'
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_LULLULAND_2CE97 }}'
channelId: live
projectId: '${{ secrets.REACT_APP_PID }}'