Skip to content

Commit

Permalink
Add workflows for Vercel deployments
Browse files Browse the repository at this point in the history
  • Loading branch information
admdly committed Nov 24, 2023
1 parent 1590942 commit 6a77f24
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/deploy-preview.yml
Original file line number Diff line number Diff line change
@@ -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
19 changes: 19 additions & 0 deletions .github/workflows/deploy-production.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 6a77f24

Please sign in to comment.