We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b5829b1 commit dbde3acCopy full SHA for dbde3ac
.github/workflows/deploy-portal-docs.yml
@@ -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
34
+ github_token: ${{ secrets.GITHUB_TOKEN }}
35
+ publish_dir: ./dist # 替换为你的构建输出目录
0 commit comments