Skip to content

Commit bfb2edb

Browse files
📃 Doc builds should use cache too
1 parent ce7f58c commit bfb2edb

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
push:
77
branches:
88
- main
9+
schedule:
10+
- cron: '0 0 * * sun'
11+
- cron: '0 12 * * wed'
912

1013
concurrency:
1114
group: ${{ github.workflow }}-${{ github.ref }}
@@ -238,6 +241,13 @@ jobs:
238241
with:
239242
python-version: 3.12
240243

244+
- name: Restore cache for Hugo
245+
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2
246+
with:
247+
path: ./hugo_cache/
248+
# This should pick up the same cache as the build_wheels job
249+
key: ${{ runner.os }}-hugo-${{ steps.setup-go.outputs.go-version }}
250+
241251
- name: Install Hugo
242252
run: pip install -e .
243253

0 commit comments

Comments
 (0)