-
Notifications
You must be signed in to change notification settings - Fork 4
41 lines (38 loc) · 1.23 KB
/
deploy-fern-dashboard-prod.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
40
41
name: Deploy @fern-ui/dashboard
env:
VERCEL_ORG_ID: team_6FKOM5nw037hv8g2mTk3gaH7
VERCEL_PROJECT_ID: prj_59B94Hus48Nbb0XrqFYZSALYmYTw
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:
tags:
- dashboard@*
# Cancel previous workflows on previous push so we don't have deploys overwriting eachother here
concurrency:
group: dashboard.buildwithfern.com
cancel-in-progress: true
jobs:
deploy:
runs-on: ubuntu-latest
if: github.ref_type == 'tag' && github.event_name == 'push'
environment:
name: Production - 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:
ref: ${{ github.ref_name || github.ref }}
package: "@fern-ui/dashboard"
environment: production
force: true
promote: true