ci: 发布改为覆盖式,不再清空站点目录

This commit is contained in:
xiaozhou233 committed 2026-10-06 14:58:17 +08:00
1 parent 9fc30aaadf
commit 8f31fbe081
2 files changed
+6 -8

No files matched your search

Vendored
+1 -2
View File
@@ -68,8 +68,7 @@ pipeline {
ls -1t "$BK_DIR"/index-*.tar.gz | tail -n +11 | xargs -r rm -f
fi
# 3) 清空 + 发布(等价于 rsync --delete)
find "$DEPLOY_DIR" -mindepth 1 -delete
# 3) 覆盖式发布:不清空目标目录,只覆盖同名文件,保留现场已有文件
find .deploy -name .gitkeep -delete
cp -a .deploy/. "$DEPLOY_DIR"/
echo "✅ Deployed to $DEPLOY_DIR"