ci: fail loud on velopack errors, guard release assets
This commit is contained in:
2 files changed
+8
-1
No files matched your search
@@ -66,6 +66,7 @@ $publishArgs = @(
|
||||
Write-Host "dotnet publish..." -ForegroundColor Cyan
|
||||
if (-not $WhatIf) {
|
||||
& dotnet $publishArgs
|
||||
if ($LASTEXITCODE -ne 0) { throw "dotnet publish failed ($LASTEXITCODE)" }
|
||||
} else {
|
||||
Write-Host "[WhatIf] dotnet $publishArgs"
|
||||
}
|
||||
@@ -85,6 +86,7 @@ $vpkArgs = @(
|
||||
Write-Host "vpk pack..." -ForegroundColor Cyan
|
||||
if (-not $WhatIf) {
|
||||
& dotnet tool run vpk $vpkArgs
|
||||
if ($LASTEXITCODE -ne 0) { throw "vpk pack failed ($LASTEXITCODE)" }
|
||||
} else {
|
||||
Write-Host "[WhatIf] dotnet tool run vpk $vpkArgs"
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user