Skip to content

Commit b42d3d9

Browse files
committed
Update ci.yml
1 parent 6388497 commit b42d3d9

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

.github/workflows/ci.yml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,18 @@ jobs:
1414
- uses: actions/setup-python@v4
1515
with:
1616
python-version: 3.x
17-
- uses: actions/cache@v3
17+
- name: Set up build cache
18+
- uses: actions/cache/restore@v4
1819
with:
19-
key: ${{ github.ref }}
20-
path: .cache
20+
key: mkdocs-material-${{ hashfiles('.cache/**') }}
21+
path: ~/.cache
22+
restore-keys: |
23+
mkdocs-material-
2124
- run: pip install mkdocs-material
2225
- run: pip install pillow cairosvg
23-
- run: mkdocs gh-deploy --force
26+
- run: mkdocs gh-deploy --force
27+
- name: Save build cache
28+
- uses: actions/cache/save@v4
29+
with:
30+
key: mkdocs-material-${{ hashfiles('.cache/**') }}
31+
path: ~/.cache

0 commit comments

Comments
 (0)