fix: draft and URL
All checks were successful
Blog Deployment / check-rebuild (push) Successful in 5s
Blog Deployment / build (push) Successful in 8s
Blog Deployment / deploy-staging (push) Successful in 9s
Blog Deployment / test-staging (push) Successful in 3s
Blog Deployment / merge (push) Successful in 5s
Blog Deployment / deploy-production (push) Successful in 9s
Blog Deployment / test-production (push) Successful in 3s
Blog Deployment / clean (push) Has been skipped

This commit is contained in:
Vezpi 2025-06-04 21:46:29 +00:00
parent d51b89690b
commit f5b980b996

View File

@ -10,6 +10,7 @@ DRAFTS=""
# Add drafts for preview
if [ $BRANCH == "preview" ]; then
echo "- Adding draft pages for the site"
DRAFTS="--buildDrafts"
fi
@ -19,7 +20,7 @@ git clone --depth 1 --recurse-submodules --branch "$BRANCH" "$REPO_URL" "$CLONE_
# Generate static files with hugo
echo "- Building site with Hugo v$HUGO_VERSION in $HUGO_DEST..."
hugo --source "$CLONE_DIR" --destination "$HUGO_DEST" $DRAFTS --logLevel info --cleanDestinationDir --gc --panicOnWarning --printI18nWarnings
hugo --source "$CLONE_DIR" --destination "$HUGO_DEST" --baseURL="https://${URL}" "$DRAFTS" --logLevel info --cleanDestinationDir --gc --panicOnWarning --printI18nWarnings
# Start nginx
echo "- Starting Nginx..."