Skip to content

Commit 500f6b7

Browse files
committed
ci: switch website deployment to GitHub Actions
1 parent 7edf74c commit 500f6b7

2 files changed

Lines changed: 47 additions & 1 deletion

File tree

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Deploy Website
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
paths:
8+
- 'website/**'
9+
- '.github/workflows/deploy-website.yml'
10+
workflow_dispatch:
11+
12+
jobs:
13+
deploy:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v4
17+
18+
- name: Install pnpm
19+
uses: pnpm/action-setup@v4
20+
with:
21+
version: 9
22+
23+
- name: Setup Node.js
24+
uses: actions/setup-node@v4
25+
with:
26+
node-version: 20
27+
cache: 'pnpm'
28+
29+
- name: Install dependencies
30+
run: pnpm install --frozen-lockfile
31+
32+
- name: Build Website
33+
env:
34+
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
35+
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
36+
run: |
37+
npm install -g vercel
38+
cd website && vercel build --token=${{ secrets.VERCEL_TOKEN }}
39+
40+
- name: Deploy to Vercel
41+
env:
42+
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
43+
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
44+
run: |
45+
cd website && vercel deploy --prebuilt --prod --token=${{ secrets.VERCEL_TOKEN }}

vercel.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"github": {
3-
"silent": true
3+
"silent": true,
4+
"enabled": false
45
}
56
}

0 commit comments

Comments
 (0)