Skip to content

Commit ae46943

Browse files
committed
fix: 修复文档构建出错的问题
fix: 修复文档无法构建问题 fix: 修复文档构建出错问题 尝试解决 尝试解决 解决文档构建出错问题 解决文档构建问题 解决文档构建出错问题
1 parent 1f63d94 commit ae46943

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

.github/workflows/deploy.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,18 +28,23 @@ jobs:
2828
- name: Checkout
2929
uses: actions/checkout@v4
3030
with:
31+
ref: ${{ github.ref }}
3132
fetch-depth: 0 # 如果未启用 lastUpdated,则不需要
32-
- name: Setup Node
33-
uses: actions/setup-node@v4
33+
- uses: actions/setup-node@v4
3434
with:
3535
node-version: 20
36-
cache: npm
36+
cache: 'npm'
37+
cache-dependency-path: doc/package-lock.json
3738
- name: Setup Pages
3839
uses: actions/configure-pages@v4
3940
- name: Install dependencies
40-
run: npm ci
41+
run: |
42+
cd doc
43+
npm ci
4144
- name: Build with VitePress
42-
run: npm run docs:build
45+
run: |
46+
cd doc
47+
npm run docs:build
4348
- name: Upload artifact
4449
uses: actions/upload-pages-artifact@v3
4550
with:

0 commit comments

Comments
 (0)