Skip to content

Commit 178c909

Browse files
committed
test
1 parent 67c947f commit 178c909

File tree

1 file changed

+19
-8
lines changed

1 file changed

+19
-8
lines changed

.github/workflows/deploy.yml

Lines changed: 19 additions & 8 deletions
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: |
@@ -40,17 +43,25 @@ jobs:
4043
id: yarn-cachedir
4144
run: echo "dir=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT
4245

43-
- name: Cache yarn
44-
uses: actions/cache@v4
45-
with:
46-
path: ${{ steps.yarn-cachedir.outputs.dir }}
47-
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
48-
restore-keys: |
49-
${{ runner.os }}-yarn-
46+
#- name: Cache yarn
47+
# uses: actions/cache@v4
48+
# with:
49+
# path: ${{ steps.yarn-cachedir.outputs.dir }}
50+
# key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
51+
# restore-keys: |
52+
# ${{ runner.os }}-yarn-
5053

5154
- name: Install dependencies
5255
run: yarn install
53-
56+
57+
- name: Cache Vitepress
58+
uses: actions/cache@v4
59+
with:
60+
path: .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

0 commit comments

Comments
 (0)