Skip to content

Commit 996bbca

Browse files
authored
ci: add build-check for pull_request
1 parent 43a8fef commit 996bbca

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/build-check.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: build-check
2+
3+
on:
4+
push:
5+
branches: [ "master" ]
6+
pull_request:
7+
branches: [ "master" ]
8+
9+
jobs:
10+
deploy-gh-pages:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v3
15+
with:
16+
fetch-depth: 0
17+
# 如果你文档需要 Git 子模块,取消注释下一行
18+
# submodules: true
19+
- name: 设置 Node.js
20+
uses: actions/setup-node@v3
21+
with:
22+
node-version: 18
23+
cache: npm
24+
25+
- name: 安装pnpm
26+
run : npm install -g pnpm
27+
28+
- name: 安装依赖
29+
run: pnpm install --frozen-lockfile
30+
31+
- name: 构建文档
32+
env:
33+
NODE_OPTIONS: --max_old_space_size=8192
34+
run: |-
35+
pnpm docs:build
36+
> src/.vuepress/dist/.nojekyll

0 commit comments

Comments
 (0)