-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (31 loc) · 955 Bytes
/
deploy-to-firebase.yml
File metadata and controls
38 lines (31 loc) · 955 Bytes
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
name: slim/deploy-to-firebase
on:
pull_request:
branches: [master]
push:
branches: [master]
jobs:
deploy-firebase:
name: "Deploy to Firebase"
if: "${{ github.event.pull_request.head.repo.full_name == github.repository }}"
runs-on: ubuntu-latest
steps:
- name: Checkout to repository
uses: actions/[email protected]
- name: Setup Node
uses: actions/[email protected]
with:
node-version: 20.8.1
- name: Install Yarn
run: sudo npm i -g yarn
- name: Install dependencies
run: yarn
- name: Build
run: REACT_APP_CONFIG=preview PUBLIC_URL=/ yarn build
- name: Deploy
uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: "${{ secrets.GITHUB_TOKEN }}"
firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT_SLIM }}"
projectId: idc-external-006
channelId: live