Skip to content

Commit 7df2d5a

Browse files
committed
Add github workflow for build and deploy to Firebase hosting
1 parent 1ae1395 commit 7df2d5a

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Deploy to Firebase Hosting
2+
3+
on:
4+
push:
5+
branches:
6+
- main # deploy when pushed to this branch
7+
8+
jobs:
9+
build-and-deploy:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout Repository
13+
uses: actions/checkout@v2
14+
15+
- name: Install Dependencies
16+
run: npm install
17+
18+
- name: Build
19+
run: npm run build
20+
21+
- name: Deploy to Firebase
22+
uses: w9jds/firebase-action@master
23+
with:
24+
args: deploy --only hosting
25+
env:
26+
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}

0 commit comments

Comments
 (0)