Skip to content

Commit 23657cf

Browse files
authored
Create react-ui-deployment.yml
1 parent 8d129ef commit 23657cf

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: React UI Deployment - Firebase Hosting
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
paths:
8+
- 'src/**'
9+
10+
jobs:
11+
firebase-deploy:
12+
runs-on: ubuntu-latest
13+
env:
14+
REACT_APP_API_URI: ${{ secrets.REACT_APP_API_URI }}
15+
REACT_APP_SENTRY_DSN: ${{ secrets.REACT_APP_SENTRY_DSN }}
16+
17+
steps:
18+
- uses: actions/checkout@master
19+
- uses: actions/setup-node@master
20+
with:
21+
node-version: '16.x'
22+
- run: npm install
23+
- run: npm run build
24+
- uses: w9jds/firebase-action@master
25+
with:
26+
args: deploy --only hosting
27+
env:
28+
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}

0 commit comments

Comments
 (0)