test
Some checks failed
Build Website / build (push) Failing after 1s

This commit is contained in:
Jean-Michel Tremblay 2026-04-23 17:13:43 -04:00
parent f8afee50f3
commit 7accb7b1fc

View file

@ -37,19 +37,22 @@ jobs:
- name: Build - name: Build
run: | run: |
set -ex set -ex
# 1. Ensure the cache exists # 1. Create the cache and force it to be writable by the Docker container
mkdir -p "$PWD/.hugo-cache" mkdir -p "$PWD/.hugo-cache"
chmod -R 777 "$PWD/.hugo-cache"
# 2. Run Hugo # 2. Run Hugo
# We mount the WHOLE root ($PWD) so Hugo sees the .git folder
# We set the working directory to /src/site where your hugo files live
docker run --rm \ docker run --rm \
-v "$PWD:/src" \ -v "$PWD:/src" \
-v "$PWD/.hugo-cache:/cache" \ -v "$PWD/.hugo-cache:/cache" \
-e GOPATH=/cache \ -e GOPATH=/cache \
-e HUGO_CACHEDIR=/cache \
-w /src/site \ -w /src/site \
forgejo.jmopines.com/jm/hugo-git:latest \ forgejo.jmopines.com/jm/hugo-git:latest \
--minify --enableGitInfo --destination "public" --baseURL "/" --minify --enableGitInfo --destination "public" --baseURL "/"
# 3. Fix permissions back so the forgejo user can read the output
sudo chmod -R 755 site/public
- name: Deploy - name: Deploy
run: | run: |
set -ex set -ex