Skip to content

Commit 73799d1

Browse files
committed
chore: update deploy website config
1 parent db04ca0 commit 73799d1

1 file changed

Lines changed: 16 additions & 14 deletions

File tree

.github/workflows/deploy-website.yml

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -8,24 +8,26 @@ on:
88
- "website/**"
99
workflow_dispatch:
1010

11+
env:
12+
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
13+
VERCEL_PROJECT_ID: prj_V3iY3AcH0wIXxMHW4oDy3W3XzfnN
14+
1115
jobs:
1216
deploy:
1317
runs-on: ubuntu-latest
14-
strategy:
15-
matrix:
16-
node-version: [18.x]
1718
defaults:
1819
run:
1920
working-directory: website
2021
steps:
21-
- uses: actions/checkout@v4
22-
- name: Deploy to Vercel
23-
uses: amondnet/vercel-action@v25.1.1
24-
env:
25-
VERSION: ${{ env.GITHUB_SHA }}
26-
with:
27-
vercel-token: ${{ secrets.VERCEL_TOKEN }}
28-
vercel-org-id: ${{ secrets.VERCEL_ORG_ID }}
29-
vercel-project-id: prj_V3iY3AcH0wIXxMHW4oDy3W3XzfnN
30-
working-directory: ./
31-
vercel-args: '--prod'
22+
- uses: actions/checkout@v4
23+
- uses: actions/setup-node@v4
24+
with:
25+
node-version: 20
26+
- name: Install Vercel CLI
27+
run: npm install --global vercel@latest
28+
- name: Pull Vercel Environment Information
29+
run: vercel pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }}
30+
- name: Build Project Artifacts
31+
run: vercel build --prod --token=${{ secrets.VERCEL_TOKEN }}
32+
- name: Deploy Project Artifacts to Vercel
33+
run: vercel deploy --prebuilt --prod --token=${{ secrets.VERCEL_TOKEN }}

0 commit comments

Comments
 (0)