From 80fcb4995f849261da5883ca84c5bf3bc1209ae1 Mon Sep 17 00:00:00 2001 From: Shahan Neda Date: Mon, 26 Aug 2024 12:09:21 -0700 Subject: [PATCH] Add prod firebase deploy (demo only for now) --- .github/workflows/prod-firebase-deploy.yml | 26 ++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/prod-firebase-deploy.yml diff --git a/.github/workflows/prod-firebase-deploy.yml b/.github/workflows/prod-firebase-deploy.yml new file mode 100644 index 00000000..0a90bec7 --- /dev/null +++ b/.github/workflows/prod-firebase-deploy.yml @@ -0,0 +1,26 @@ +name: "Prod: Deploy frontend" + +on: + workflow_dispatch: + push: + branches: + - main + paths: + - "frontend/**" + +jobs: + build_and_deploy: + runs-on: ubuntu-latest + environment: staging + steps: + - uses: actions/checkout@v2 + with: + fetch-depth: 0 + - uses: ./.github/actions/firebase-deploy + with: + channelId: live + backendUrl: "${{ secrets.BACKEND_URL_STAGING }}" + oauthClientId: "${{ secrets.OAUTH_CLIENT_ID_STAGING }}" + repoToken: "${{ secrets.GITHUB_TOKEN }}" + firebaseServiceAccount: "${{ secrets.FIREBASE_SVC_ACCOUNT_JSON_PROD }}" + projectId: "${{ secrets.FIREBASE_PROJECT_ID_PROD }}"