From 0f7e1af0244b2b2c76d0a29c8b5605a77b79a1ff Mon Sep 17 00:00:00 2001 From: Vincent Ramdhanie Date: Wed, 2 Oct 2024 15:38:26 -0700 Subject: [PATCH] Add github action for deploy --- .github/workflows/deploy-prod.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/deploy-prod.yml diff --git a/.github/workflows/deploy-prod.yml b/.github/workflows/deploy-prod.yml new file mode 100644 index 0000000..3d54f2c --- /dev/null +++ b/.github/workflows/deploy-prod.yml @@ -0,0 +1,24 @@ +name: Deploy to Live Site + +on: + push: + branches: + - main + # Optionally configure to run only for specific files. For example: + # paths: + # - "website/**" + +jobs: + deploy_live_website: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + # Add any build steps here. For example: + # - run: npm ci && npm run build + - run: yarn install + - run: yarn build + - uses: FirebaseExtended/action-hosting-deploy@v0 + with: + firebaseServiceAccount: '${{ secrets._TOKEN }}' + projectId: ${{ secrets.PROJECT_ID }} + channelId: live