Skip to content

Commit dbde3ac

Browse files
committed
feat: update
1 parent b5829b1 commit dbde3ac

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Build and Deploy Portal Docs Website
2+
3+
on:
4+
push:
5+
branches:
6+
- *
7+
8+
permissions:
9+
contents: write
10+
11+
jobs:
12+
build-and-deploy:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@v4
18+
19+
- name: Set up Node.js
20+
uses: actions/setup-node@v4
21+
with:
22+
node-version: '18' # 选择你项目所需的 Node.js 版本
23+
cache: 'pnpm' # 启用 pnpm 缓存
24+
25+
- name: Install pnpm
26+
run: corepack enable && corepack prepare pnpm@latest --activate
27+
28+
- name: Build assets
29+
run: pnpm run build:portal:docs
30+
31+
- name: Deploy to GitHub Pages
32+
uses: peaceiris/actions-gh-pages@v3
33+
with:
34+
github_token: ${{ secrets.GITHUB_TOKEN }}
35+
publish_dir: ./dist # 替换为你的构建输出目录

0 commit comments

Comments
 (0)