My Hugo site (https://github.com/EOCOnline/eoconline.github.io
) builds & runs fine locally, on my Windows desktop.
However, the Github Action/workflow
https://github.com/EOCOnline/eoconline.github.io/blob/main/.github/workflows/main.yml
fails with
`ERROR mkdir /resourceCache: permission denied
Total in 2065 ms
Error: error building site: render: failed to render pages: render of “404” failed: “/home/runner/work/eoconline.github.io/eoconline.github.io/themes/eoconline/layouts/_default/baseof.html:38:7”: execute of template failed: template: 404.en.html:38:7: executing “404.en.html” at <partial “essentials/header.html” .>: error calling partial: “/home/runner/work/eoconline.github.io/eoconline.github.io/themes/eoconline/layouts/partials/essentials/header.html:8:11”: execute of template failed: template: partials/essentials/header.html:8:11: executing “partials/essentials/header.html” at <partial “logo”>: error calling partial: “/tmp/hugo_cache_runner/modules/filecache/modules/pkg/mod/github.com/gethugothemes/hugo-modules/images@v0.0.0-20240711030223-49ae4a26e064/layouts/partials/logo.html:83:33”: execute of template failed: template: partials/logo.html:83:33: executing “partials/logo.html” at <$logo.Resize>: error calling Resize: mkdir /resourceCache: permission denied
Error: Process completed with exit code 1.`
(In hugo.toml
I’ve added resourceDir = "/resourceCache/"
, since I’m offering “resources” to folks.)
I’ve tried:
- reading lots of docs
- ensuring I was using Hugo-extended (required by the Resize command)
- git update-index --chmod=+x .github/workflows/main.yml
- set GITHUB_TOKEN permissions within main.yml to write-all
- removing resourceCache from my gitignore file, so the directories are already there & need not be created
- coffee & sugar & sleep
Any other ideas?!