test
Some checks failed
Build Website / build (push) Has been cancelled

This commit is contained in:
Jean-Michel Tremblay 2026-04-23 19:25:16 -04:00
parent 6a03437153
commit b41603c6b3

View file

@ -41,15 +41,16 @@ jobs:
chmod -R 777 "$PWD/.hugo-cache"
docker run --rm \
--entrypoint /bin/sh \
-v "$PWD:/src" \
-v "$PWD/.hugo-cache:/cache" \
-e GOPATH=/cache \
-e HUGO_CACHEDIR=/cache \
-w /src/site \
forgejo.jmopines.com/jm/hugo-git:latest \
sh -c "git config --global --add safe.directory /src && hugo --minify --enableGitInfo --noTimes --destination public --baseURL /"
-c "git config --global --add safe.directory /src && hugo --minify --enableGitInfo --noTimes --destination public --baseURL /"
# Clean up ownership so the host user can rsync it
# Ensure the host runner user can read the results for rsync
sudo chown -R forgejo:forgejo site/public || true
- name: Deploy
run: |