File tree Expand file tree Collapse file tree 2 files changed +13
-1
lines changed
Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Original file line number Diff line number Diff 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 : |
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
Original file line number Diff line number Diff 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 : {
You can’t perform that action at this time.
0 commit comments