create firebase action
This commit is contained in:
parent
4c71bec3fe
commit
545081f6d9
1 changed files with 23 additions and 0 deletions
23
.github/workflows/firebase.yml
vendored
Normal file
23
.github/workflows/firebase.yml
vendored
Normal 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
|
Loading…
Reference in a new issue