Skip to content

Commit dbe5a12

Browse files
committed
update vercel deployment
1 parent e13bda8 commit dbe5a12

File tree

2 files changed

+38
-41
lines changed

2 files changed

+38
-41
lines changed

.github/workflows/docs.yml

Lines changed: 0 additions & 41 deletions
This file was deleted.

.github/workflows/vercel-prod.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Vercel PROD Deployment
2+
3+
env:
4+
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
5+
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
6+
7+
on:
8+
pull_request:
9+
types:
10+
- closed
11+
branches:
12+
- "changeset-release/main"
13+
push:
14+
branches:
15+
- main
16+
17+
jobs:
18+
prod-deploy:
19+
runs-on: ubuntu-latest
20+
if: github.event_name == 'pull_request' && github.event.pull_request.merged == true
21+
22+
steps:
23+
- uses: actions/checkout@v4
24+
25+
- name: Setup
26+
uses: ./.github/setup
27+
28+
- name: Install Vercel CLI
29+
run: pnpm add -g vercel@latest
30+
31+
- name: Pull Vercel Environment Information
32+
run: vercel pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }}
33+
34+
- name: Build Project Artifacts
35+
run: vercel build --prod --token=${{ secrets.VERCEL_TOKEN }}
36+
37+
- name: Deploy Project Artifacts to Vercel
38+
run: vercel deploy --prebuilt --prod --token=${{ secrets.VERCEL_TOKEN }}

0 commit comments

Comments
 (0)