feat: add rm blog dir in init script
All checks were successful
Blog Deployment / Check-Rebuild (push) Successful in 21s
Blog Deployment / Merge (push) Successful in 10s
Blog Deployment / Deploy-Production (push) Successful in 12s
Blog Deployment / Test-Production (push) Successful in 3s
Blog Deployment / Clean (push) Successful in 4s
Blog Deployment / Notify (push) Successful in 3s
Blog Deployment / Build (push) Successful in 49s
Blog Deployment / Deploy-Staging (push) Successful in 12s
Blog Deployment / Test-Staging (push) Successful in 42s

This commit is contained in:
2025-09-01 18:25:50 +00:00
parent a71cba5e61
commit ada377ef8e

View File

@@ -14,6 +14,9 @@ if [ "$BRANCH" = "preview" ]; then
DRAFTS="--buildDrafts --buildFuture" DRAFTS="--buildDrafts --buildFuture"
fi fi
# Clean blog dir
rm -rf "$CLONE_DIR"
# Clone repo # Clone repo
echo "- Cloning $REPO_URL (branch: $BRANCH)..." echo "- Cloning $REPO_URL (branch: $BRANCH)..."
git clone --recurse-submodules --branch "$BRANCH" "$REPO_URL" "$CLONE_DIR" git clone --recurse-submodules --branch "$BRANCH" "$REPO_URL" "$CLONE_DIR"