From 545081f6d9f2c74fcdd3ae3bd704e1fbde4a1347 Mon Sep 17 00:00:00 2001 From: Raymond Wang Date: Tue, 25 Oct 2022 13:47:21 -0700 Subject: [PATCH] create firebase action --- .github/workflows/firebase.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/firebase.yml diff --git a/.github/workflows/firebase.yml b/.github/workflows/firebase.yml new file mode 100644 index 0000000..7627ff0 --- /dev/null +++ b/.github/workflows/firebase.yml @@ -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