Skip to content

Commit

Permalink
📃 Doc builds should use cache too
Browse files Browse the repository at this point in the history
  • Loading branch information
agriyakhetarpal committed Apr 14, 2024
1 parent ce7f58c commit 55dbee5
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ on:
push:
branches:
- main
schedule:
- cron: '0 0 * * sun'
- cron: '0 12 * * wed'

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand Down Expand Up @@ -230,6 +233,7 @@ jobs:
fetch-depth: 0
submodules: 'recursive'
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
id: setup-go
with:
go-version: "1.22.1"
cache: false
Expand All @@ -238,6 +242,13 @@ jobs:
with:
python-version: 3.12

- name: Restore cache for Hugo
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2
with:
path: ./hugo_cache/
# This should pick up the same cache as the build_wheels job
key: ubuntu-latest-hugo-${{ steps.setup-go.outputs.go-version }}

- name: Install Hugo
run: pip install -e .

Expand Down

0 comments on commit 55dbee5

Please sign in to comment.