-
Notifications
You must be signed in to change notification settings - Fork 4
39 lines (36 loc) · 1.15 KB
/
deploy-fern-dashboard-dev.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Deploy @fern-ui/dashboard (dev)
env:
VERCEL_ORG_ID: team_6FKOM5nw037hv8g2mTk3gaH7
VERCEL_PROJECT_ID: prj_pxVBPOeLKJLEUkQXXMHKWq8h6Z0f
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
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: Production - dashboard-dev.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:
ref: ${{ github.ref_name || github.ref }}
package: "@fern-ui/dashboard"
environment: production
promote: true