Skip to content

Commit

Permalink
Preserve informational version when building on master
Browse files Browse the repository at this point in the history
  • Loading branch information
nblumhardt committed Aug 30, 2017
1 parent 9a1b806 commit e681373
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,12 @@ foreach ($src in ls src/*) {

echo "build: Packaging project in $src"

& dotnet build -c Release --version-suffix=$buildSuffix

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

Expand Down

0 comments on commit e681373

Please sign in to comment.