Write deploy manifest without BOM
This commit is contained in:
@@ -75,13 +75,15 @@ if (Test-Path $releaseManifestPath -PathType Leaf) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if ($writeReleaseManifest) {
|
if ($writeReleaseManifest) {
|
||||||
@{
|
$releaseManifestJson = @{
|
||||||
app = "heros_web"
|
app = "heros_web"
|
||||||
commit = $fullCommit
|
commit = $fullCommit
|
||||||
shortCommit = $commit
|
shortCommit = $commit
|
||||||
qaVersion = $qaVersion
|
qaVersion = $qaVersion
|
||||||
generatedAt = (Get-Date).ToUniversalTime().ToString("o")
|
generatedAt = (Get-Date).ToUniversalTime().ToString("o")
|
||||||
} | ConvertTo-Json -Depth 4 | Set-Content -LiteralPath $releaseManifestPath -Encoding UTF8
|
} | ConvertTo-Json -Depth 4
|
||||||
|
$utf8NoBom = New-Object System.Text.UTF8Encoding $false
|
||||||
|
[System.IO.File]::WriteAllText($releaseManifestPath, "$releaseManifestJson`n", $utf8NoBom)
|
||||||
Write-Host "Wrote $releaseManifestPath for $commit ($qaVersion)"
|
Write-Host "Wrote $releaseManifestPath for $commit ($qaVersion)"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user