Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Fern Dashboard - Vercel Preview Deployment | |
env: | |
VERCEL_ORG_ID: team_6FKOM5nw037hv8g2mTk3gaH7 | |
VERCEL_PROJECT_ID: prj_pxVBPOeLKJLEUkQXXMHKWq8h6Z0f | |
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} | |
TURBO_TEAM: "buildwithfern" | |
# TODO: move to env vars in vercel | |
AUTH0_DOMAIN: ${{ secrets.AUTH0_DOMAIN }} | |
AUTH0_CLIENT_ID: ${{ secrets.AUTH0_CLIENT_ID }} | |
VENUS_ORIGIN: ${{ secrets.VENUS_ORIGIN }} | |
VENUS_AUDIENCE: ${{ secrets.VENUS_AUDIENCE }} | |
on: | |
push: | |
branches: | |
- main | |
# Cancel previous workflows on previous push so we don't have deploys overwriting eachother here | |
concurrency: | |
group: dashboard-dev.buildwithfern.com | |
cancel-in-progress: true | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
environment: | |
name: Preview - dashboard.buildwithfern.com | |
url: ${{ steps.deploy.outputs.deployment_url }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Build & Deploy to Vercel | |
uses: .github/actions/vercel | |
id: deploy | |
with: | |
token: ${{ secrets.VERCEL_TOKEN }} | |
package: "@fern-ui/dashboard" | |
environment: preview |