forked from Codo-a-Codo-4-0-Comision-22013/front-end-project
-
Notifications
You must be signed in to change notification settings - Fork 1
30 lines (29 loc) · 1.1 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
# 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
jobs:
build_and_deploy:
runs-on: ubuntu-latest
env:
CI: false
steps:
- uses: actions/checkout@v2
- run: npm ci && npm run build
env:
REACT_APP_APIKEY: '${{ secrets.REACT_APP_APIKEY }}'
REACT_APP_AUTHDOMAIN: '${{ secrets.REACT_APP_AUTHDOMAIN }}'
REACT_APP_PROJECTID: '${{ secrets.REACT_APP_PROJECTID }}'
REACT_APP_STORAGEBUCKET: '${{ secrets.REACT_APP_STORAGEBUCKET }}'
REACT_APP_MESSAGINGSENDERID: '${{ secrets.REACT_APP_MESSAGINGSENDERID }}'
REACT_APP_APPID: '${{ secrets.REACT_APP_APPID }}'
REACT_APP_MEASUREMENTID: '${{ secrets.REACT_APP_MEASUREMENTID }}'
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: '${{ secrets.GITHUB_TOKEN }}'
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_POKEDEX_APP_689E7 }}'
channelId: live
projectId: pokedex-app-689e7