disable local server cache to prevent likec4 file caching
Some checks failed
Hugo Site Tests / test (push) Failing after 2s
ci / build (push) Successful in 54s

This commit is contained in:
Manuel Ganter 2025-12-03 10:29:45 +01:00
parent 9bc6f6e795
commit 1ab3e6c262
No known key found for this signature in database

View file

@ -43,7 +43,7 @@ tasks:
- deps:ensure-npm
- build:generate-info
cmds:
- "{{.HUGO_CMD}} server"
- "{{.HUGO_CMD}} server --noHTTPCache"
clean:
desc: Clean build artifacts
@ -113,16 +113,16 @@ tasks:
if [ -d "public/docs-old" ]; then mv public/docs-old /tmp/htmltest-backup-$$/; fi
if [ -d "public/blog" ]; then mv public/blog /tmp/htmltest-backup-$$/; fi
if [ -d "public/_print/docs-old" ]; then mv public/_print/docs-old /tmp/htmltest-backup-$$/docs-old-print; fi
# Run htmltest
htmltest || EXIT_CODE=$?
# Restore directories
if [ -d "/tmp/htmltest-backup-$$/docs-old" ]; then mv /tmp/htmltest-backup-$$/docs-old public/; fi
if [ -d "/tmp/htmltest-backup-$$/blog" ]; then mv /tmp/htmltest-backup-$$/blog public/; fi
if [ -d "/tmp/htmltest-backup-$$/docs-old-print" ]; then mv /tmp/htmltest-backup-$$/docs-old-print public/_print/docs-old; fi
rm -rf /tmp/htmltest-backup-$$
# Exit with the original exit code
exit ${EXIT_CODE:-0}