Skip to content

Commit 1844ac6

Browse files
committed
test
1 parent 67c947f commit 1844ac6

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

.github/workflows/deploy.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,15 @@ jobs:
2121
steps:
2222
- name: Checkout
2323
uses: actions/checkout@v4
24+
with:
25+
fetch-depth: 0
2426

2527
- name: Setup Node
2628
uses: actions/setup-node@v4
2729
with:
2830
node-version-file: package.json
2931
check-latest: true
32+
#cache: yarn
3033

3134
- name: Setup yarn
3235
run: |
@@ -50,7 +53,15 @@ jobs:
5053
5154
- name: Install dependencies
5255
run: yarn install
53-
56+
57+
- name: Cache Vitepress
58+
uses: actions/cache@v4
59+
with:
60+
path: docs/.vitepress/cache
61+
key: ${{ runner.os }}-vitepress-${{ github.run_number }}
62+
restore-keys: |
63+
${{ runner.os }}-vitepress-
64+
5465
- name: Build with VitePress
5566
run: yarn run docs:build
5667

docs/.vitepress/config.mts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ export default withMermaid(
100100
lang: "zh-CN",
101101
base: "/C/",
102102
cleanUrls: true,
103+
cacheDir: ".vitepress/cache",
103104
metaChunk: true,
104105
lastUpdated: true,
105106
themeConfig: {

0 commit comments

Comments
 (0)