fix: add recurse-submodules in the git clone
All checks were successful
Deploy / Deploy (push) Successful in 4s
All checks were successful
Deploy / Deploy (push) Successful in 4s
This commit is contained in:
parent
51a5046f3c
commit
687595b4c9
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user