fix(deploy): harden webhook auto-release for CRLF, git reset, and prisma order

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-07-06 17:01:05 +08:00
parent 5583442ee7
commit 3625f037d0
3 changed files with 29 additions and 11 deletions
+1
View File
@@ -22,6 +22,7 @@ if [[ ! -f "$ENV_FILE" ]]; then
else
echo " 保留已有 $ENV_FILE"
fi
sed -i 's/\r$//' "$ENV_FILE" 2>/dev/null || true
echo "==> 3. Nginx webhook 路由"
HOOK_CONF="$DEPLOY_DIR/nginx-deploy-webhook.conf"