Skip to content

Commit 98ed345

Browse files
authored
Merge pull request #57 from serilog/dev
Fix `main` branch build versioning
2 parents 6fc0681 + 378f87e commit 98ed345

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Build.ps1

+7-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,13 @@ foreach ($src in ls src/*) {
2424
echo "build: Packaging project in $src"
2525

2626
& dotnet build -c Release --version-suffix=$buildSuffix
27-
& dotnet pack -c Release --include-symbols -o ..\..\artifacts --version-suffix=$suffix --no-build
27+
if($LASTEXITCODE -ne 0) { exit 1 }
28+
29+
if ($suffix) {
30+
& dotnet pack -c Release --include-symbols -o ..\..\artifacts --version-suffix=$suffix --no-build
31+
} else {
32+
& dotnet pack -c Release --include-symbols -o ..\..\artifacts --no-build
33+
}
2834
if($LASTEXITCODE -ne 0) { exit 1 }
2935

3036
Pop-Location

0 commit comments

Comments
 (0)