fix: add recurse-submodules in the git clone
All checks were successful
Deploy / Deploy (push) Successful in 4s

This commit is contained in:
Vezpi 2025-06-02 09:21:09 +00:00
parent 51a5046f3c
commit 687595b4c9

View File

@ -7,7 +7,7 @@ BRANCH="${BRANCH:-preview}"
CLONE_DIR="${CLONE_DIR:-/blog}" CLONE_DIR="${CLONE_DIR:-/blog}"
echo "Cloning $REPO_URL (branch: $BRANCH)..." echo "Cloning $REPO_URL (branch: $BRANCH)..."
git clone --depth 1 --branch "$BRANCH" "$REPO_URL" "$CLONE_DIR" git clone --depth 1 --recurse-submodules --branch "$BRANCH" "$REPO_URL" "$CLONE_DIR"
echo "Building site with Hugo $HUGO_VERSION..." echo "Building site with Hugo $HUGO_VERSION..."
hugo --source "$CLONE_DIR" --destination "$HUGO_DEST" --cleanDestinationDir hugo --source "$CLONE_DIR" --destination "$HUGO_DEST" --cleanDestinationDir