Skip to content

Commit 5b963cb

Browse files
committed
ci: add vercel pull to retrieve project settings
1 parent fe3d30b commit 5b963cb

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

.github/workflows/deploy-website.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,20 @@ jobs:
2727
- name: Install dependencies
2828
run: pnpm install --frozen-lockfile
2929

30-
- name: Build Website
30+
- name: Pull Vercel Environment Information
3131
env:
3232
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
3333
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
3434
run: |
3535
npm install -g vercel
36-
cd website && vercel build --token=${{ secrets.VERCEL_TOKEN }}
36+
cd website && vercel pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }}
37+
38+
- name: Build Website
39+
env:
40+
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
41+
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
42+
run: |
43+
cd website && vercel build --prod --token=${{ secrets.VERCEL_TOKEN }}
3744
3845
- name: Deploy to Vercel
3946
env:

0 commit comments

Comments
 (0)