From 0788e01ecf1034e996370a624eb439a61d4d3b02 Mon Sep 17 00:00:00 2001 From: Razon Yang Date: Wed, 13 Mar 2024 10:28:53 +0800 Subject: [PATCH] Update README.md --- README.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 00f9003..59360ec 100644 --- a/README.md +++ b/README.md @@ -154,9 +154,15 @@ Insert a cache step before site-building as follows. Note that with latest hugo version, the [cache dir location](https://gohugo.io/getting-started/configuration/#configure-cachedir) on a Linux-based operating system is `${HOME}/.cache`. On macOS, `${HOME}/Library/Caches` has the location. ```yaml +- name: Setup Go + uses: actions/setup-go@v5 + with: + go-version: 'stable' + - uses: actions/cache@v3 with: - path: /tmp/hugo_cache_runner # <-- with hugo version v0.116.0 and above + path: /home/runner/.cache/hugo_cache # <-- with hugo version v0.116.0 and above + # path: /tmp/hugo_cache_runner # <-- with hugo version v0.116.0 and above, and without actions/setup-go step. # path: /tmp/hugo_cache # <-- with hugo version < v0.116.0 key: ${{ runner.os }}-hugomod-${{ hashFiles('**/go.sum') }} restore-keys: |