Skip to content

Commit f7573f5

Browse files
📃 Doc builds should use cache too
1 parent b572d02 commit f7573f5

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 }}
@@ -269,6 +272,7 @@ jobs:
269272
fetch-depth: 0
270273
submodules: 'recursive'
271274
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
275+
id: setup-go
272276
with:
273277
go-version: "1.22.1"
274278
cache: false
@@ -277,6 +281,13 @@ jobs:
277281
with:
278282
python-version: 3.12
279283

284+
- name: Restore cache for Hugo
285+
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2
286+
with:
287+
path: ./hugo_cache/
288+
# This should pick up the same cache as the build_wheels job
289+
key: ubuntu-latest-hugo-${{ steps.setup-go.outputs.go-version }}
290+
280291
- name: Install Hugo
281292
run: pip install -e .
282293

0 commit comments

Comments
 (0)