Skip to content

Commit

Permalink
Merge pull request #57 from serilog/dev
Browse files Browse the repository at this point in the history
Fix `main` branch build versioning
  • Loading branch information
nblumhardt authored Jun 22, 2022
2 parents 6fc0681 + 378f87e commit 98ed345
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,13 @@ foreach ($src in ls src/*) {
echo "build: Packaging project in $src"

& dotnet build -c Release --version-suffix=$buildSuffix
& dotnet pack -c Release --include-symbols -o ..\..\artifacts --version-suffix=$suffix --no-build
if($LASTEXITCODE -ne 0) { exit 1 }

if ($suffix) {
& dotnet pack -c Release --include-symbols -o ..\..\artifacts --version-suffix=$suffix --no-build
} else {
& dotnet pack -c Release --include-symbols -o ..\..\artifacts --no-build
}
if($LASTEXITCODE -ne 0) { exit 1 }

Pop-Location
Expand Down

0 comments on commit 98ed345

Please sign in to comment.