From 6a77f244a6cebeb1ebf1e9a0e1d65c1ace89a472 Mon Sep 17 00:00:00 2001 From: Adam Daley Date: Fri, 24 Nov 2023 21:51:31 +0000 Subject: [PATCH] Add workflows for Vercel deployments --- .github/workflows/deploy-preview.yml | 21 +++++++++++++++++++++ .github/workflows/deploy-production.yml | 19 +++++++++++++++++++ 2 files changed, 40 insertions(+) create mode 100644 .github/workflows/deploy-preview.yml create mode 100644 .github/workflows/deploy-production.yml diff --git a/.github/workflows/deploy-preview.yml b/.github/workflows/deploy-preview.yml new file mode 100644 index 0000000..fd7de7a --- /dev/null +++ b/.github/workflows/deploy-preview.yml @@ -0,0 +1,21 @@ +name: Vercel Deploy Preview + +on: + push: + branches-ignore: + - main + pull_request: + branches: + - main + +jobs: + build-deploy-preview: + permissions: + contents: read + uses: FOSSBilling/.workflows/.github/workflows/vercel-build-deploy.yml@main + secrets: + vercel_org_id: ${{ secrets.VERCEL_ORG_ID }} + vercel_project_id: ${{ secrets.VERCEL_PROJECT_ID }} + vercel_token: ${{ secrets.VERCEL_TOKEN }} + with: + environment: Preview \ No newline at end of file diff --git a/.github/workflows/deploy-production.yml b/.github/workflows/deploy-production.yml new file mode 100644 index 0000000..36e2de7 --- /dev/null +++ b/.github/workflows/deploy-production.yml @@ -0,0 +1,19 @@ +name: Vercel Deploy Production + +on: + push: + branches: + - main + +jobs: + build-deploy-production: + permissions: + contents: read + uses: FOSSBilling/.workflows/.github/workflows/vercel-build-deploy.yml@main + secrets: + vercel_org_id: ${{ secrets.VERCEL_ORG_ID }} + vercel_project_id: ${{ secrets.VERCEL_PROJECT_ID }} + vercel_token: ${{ secrets.VERCEL_TOKEN }} + with: + environment: Production + prod_deployment: true \ No newline at end of file