Skip to content

Commit bcfbfef

Browse files
committed
Fix CI env var name
1 parent 4ff8a2a commit bcfbfef

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/hugo.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
runs-on: ubuntu-latest
3131
env:
3232
HUGO_VERSION: 0.145.0
33-
HUGO_CACHE_DIR: /tmp/hugo_cache
33+
HUGO_CACHEDIR: /tmp/hugo_cache
3434
HUGO_ENVIRONMENT: production
3535
steps:
3636
- name: Setup hugo
@@ -49,8 +49,8 @@ jobs:
4949
- name: Setup hugo cache
5050
uses: actions/cache@v4
5151
with:
52-
path: ${{ env.HUGO_CACHEDIR }}
53-
key: ${{ runner.os }}-hugomod-${{ hashFiles('**/config.toml') }}
52+
path: "${{ env.HUGO_CACHEDIR }}"
53+
key: ${{ runner.os }}-hugomod-${{ hashFiles('config.toml') }}
5454
restore-keys: |
5555
${{ runner.os }}-hugomod-
5656
@@ -66,7 +66,7 @@ jobs:
6666
- name: Build with Hugo
6767
env:
6868
# For maximum backward compatibility with Hugo modules
69-
HUGO_CACHEDIR: ${{ env.HUGO_CACHE_DIR }}
69+
HUGO_CACHEDIR: ${{ env.HUGO_CACHEDIR }}
7070
HUGO_ENVIRONMENT: ${{ env.HUGO_ENVIRONMENT }}
7171
run: |
7272
hugo \

0 commit comments

Comments
 (0)