Merge pull request '修复复用发布包时清单目录缺失' (#42) from dev into sit
发布 Nacos 配置 / publish (push) Failing after 1m34s
Salon SIT 自动发布 / deploy (push) Failing after 4m56s

Reviewed-on: http://wcy111.top:3000/xiaowang/JayuCloud/pulls/42
This commit was merged in pull request #42.
This commit is contained in:
2026-09-04 00:25:28 +08:00
@@ -849,6 +849,10 @@ function Write-ReleaseManifest {
deploy = [bool]$Deploy
}
}
$manifestDirectory = Split-Path -Parent $manifestPath
if (-not (Test-Path -LiteralPath $manifestDirectory)) {
New-Item -ItemType Directory -Path $manifestDirectory -Force | Out-Null
}
$manifest | ConvertTo-Json -Depth 8 | Set-Content -LiteralPath $manifestPath -Encoding UTF8
Write-Host "Manifest: $manifestPath"
}
@@ -886,6 +890,10 @@ if ($PackageOnly) {
packageOnly = $true
}
}
$packageManifestDirectory = Split-Path -Parent $manifestPath
if (-not (Test-Path -LiteralPath $packageManifestDirectory)) {
New-Item -ItemType Directory -Path $packageManifestDirectory -Force | Out-Null
}
$packageManifest | ConvertTo-Json -Depth 8 | Set-Content -LiteralPath $manifestPath -Encoding UTF8
Write-Host "发布包已生成:$($package.Directory)"
exit 0