Skip to content

Commit 6e1a0a7

Browse files
committed
deploy: 新增build-docs工作流
1 parent d0b7a8f commit 6e1a0a7

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/build-docs..yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: 构建博客
2+
3+
on:
4+
pull_request:
5+
branches: [ "main" ]
6+
7+
jobs:
8+
build-docs:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout
12+
uses: actions/checkout@v4
13+
with:
14+
fetch-depth: 0
15+
16+
- name: Setup Pnpm
17+
uses: pnpm/action-setup@v4
18+
19+
- name: 设置 Node.js
20+
uses: actions/setup-node@v4
21+
with:
22+
node-version: 22
23+
cache: pnpm
24+
25+
- name: 安装依赖
26+
run: pnpm install --frozen-lockfile
27+
28+
- name: 构建文档
29+
env:
30+
NODE_OPTIONS: --max_old_space_size=8192
31+
run: |-
32+
pnpm docs:build

0 commit comments

Comments
 (0)