Skip to content

Commit f8d084a

Browse files
committed
ci: 优化文档部署工作流
- 添加工作流文件自身到触发路径 - 添加 bun 依赖缓存以加速构建 Signed-off-by: Caijinglong <[email protected]>
1 parent 7b59215 commit f8d084a

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/deploy-docs.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ on:
66
- main
77
paths:
88
- 'docs/website/**'
9+
- '.github/workflows/deploy-docs.yml'
910
workflow_dispatch:
1011

1112
permissions:
@@ -30,6 +31,14 @@ jobs:
3031
with:
3132
bun-version: latest
3233

34+
- name: Cache bun dependencies
35+
uses: actions/cache@v4
36+
with:
37+
path: ~/.bun/install/cache
38+
key: ${{ runner.os }}-bun-${{ hashFiles('docs/website/bun.lockb') }}
39+
restore-keys: |
40+
${{ runner.os }}-bun-
41+
3342
- name: Install dependencies
3443
run: bun install --frozen-lockfile
3544

0 commit comments

Comments
 (0)