Skip to content

Commit 01e431a

Browse files
committed
CI: move save cache action & rename key
1 parent d843a2f commit 01e431a

File tree

1 file changed

+10
-12
lines changed

1 file changed

+10
-12
lines changed

.github/workflows/ci.yml

+10-12
Original file line numberDiff line numberDiff line change
@@ -39,25 +39,15 @@ jobs:
3939
id: cache-linkcheck-restore
4040
uses: actions/cache/restore@v4
4141
with:
42-
path: |
43-
~/book/linkcheck
44-
key: ${{ runner.os }}-${{ hashFiles('./book/linkcheck') }}
42+
path: ~/book/linkcheck
43+
key: linkcheck
4544

4645
- name: Install latest nightly Rust toolchain
4746
if: steps.mdbook-cache.outputs.cache-hit != 'true'
4847
run: |
4948
rustup update nightly
5049
rustup override set nightly
5150
52-
- name: Save cached Linkcheck
53-
id: cache-linkcheck-save
54-
if: always() && steps.cache-linkcheck-restore.outputs.cache-hit != 'true'
55-
uses: actions/cache/save@v4
56-
with:
57-
path: |
58-
~/book/linkcheck
59-
key: ${{ runner.os }}-${{ hashFiles('./book/linkcheck') }}
60-
6151
- name: Install Dependencies
6252
if: steps.mdbook-cache.outputs.cache-hit != 'true'
6353
run: |
@@ -69,6 +59,14 @@ jobs:
6959
- name: Check build
7060
run: mdbook build
7161

62+
- name: Save cached Linkcheck
63+
id: cache-linkcheck-save
64+
if: always() && steps.cache-linkcheck-restore.outputs.cache-hit != 'true'
65+
uses: actions/cache/save@v4
66+
with:
67+
path: ~/book/linkcheck
68+
key: linkcheck
69+
7270
- name: Deploy to gh-pages
7371
if: github.event_name == 'push'
7472
run: |

0 commit comments

Comments
 (0)