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