Skip to content

Commit 55dbee5

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

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.github/workflows/ci.yml

Lines changed: 11 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 }}
@@ -230,6 +233,7 @@ jobs:
230233
fetch-depth: 0
231234
submodules: 'recursive'
232235
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
236+
id: setup-go
233237
with:
234238
go-version: "1.22.1"
235239
cache: false
@@ -238,6 +242,13 @@ jobs:
238242
with:
239243
python-version: 3.12
240244

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

0 commit comments

Comments
 (0)