create firebase action

This commit is contained in:
Raymond Wang 2022-10-25 13:47:21 -07:00
parent 4c71bec3fe
commit 545081f6d9

23
.github/workflows/firebase.yml vendored Normal file
View file

@ -0,0 +1,23 @@
name: deploy-production
on:
pull_request:
branches: [main]
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v3
with:
node-version: 16
- run: |
npm ci
npm run build
- uses: waymondrang/action-hosting-deploy@v1
with:
repoToken: "${{ secrets.GITHUB_TOKEN }}"
firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT }}"
projectId: ieeeucsd-org
channelId: live