fix: add condition on version for cleaning
Some checks failed
Blog Deployment / check-rebuild (push) Successful in 4s
Blog Deployment / build (push) Has been skipped
Blog Deployment / deploy-staging (push) Successful in 9s
Blog Deployment / test-staging (push) Failing after 3s
Blog Deployment / merge (push) Has been skipped
Blog Deployment / deploy-production (push) Has been skipped
Blog Deployment / test-production (push) Has been skipped
Blog Deployment / clean (push) Has been skipped

This commit is contained in:
Vezpi 2025-06-04 21:29:28 +00:00
parent 8a926a119e
commit c5546106a6
2 changed files with 1 additions and 2 deletions

View File

@ -182,6 +182,7 @@ jobs:
- check-rebuild
- build
- test-production
if: needs.check-rebuild.outputs.newer_version_available == 'true'
runs-on: docker
defaults:
run:

View File

@ -16,8 +16,6 @@ fi
echo "- Cloning $REPO_URL (branch: $BRANCH)..."
git clone --depth 1 --recurse-submodules --branch "$BRANCH" "$REPO_URL" "$CLONE_DIR"
exit 1
echo "- Building site with Hugo v$HUGO_VERSION in $HUGO_DEST..."
hugo --source "$CLONE_DIR" --destination "$HUGO_DEST" --baseURL "$URL" $DRAFTS --logLevel info --cleanDestinationDir --gc --panicOnWarning --printI18nWarnings