Skip to content

Commit

Permalink
Fix package release builds.
Browse files Browse the repository at this point in the history
  • Loading branch information
KeRNeLith committed Sep 2, 2020
1 parent 076615a commit 042a738
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions build/setupBuild.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -29,18 +29,19 @@ function UpdateDeployBuild()
if ($env:APPVEYOR_REPO_TAG -eq "true")
{
UpdateDeployBuild;
$env:Build_Version = "$($env:APPVEYOR_REPO_TAG_NAME.Replace('v', ''))";
$env:Build_Assembly_Version = $env:Build_Version;
$env:IsFullIntegrationBuild = $false; # Run only tests on deploy builds (not coverage, etc.)
}
else
{
$env:Build_Version = "$($env:APPVEYOR_BUILD_VERSION)";
$env:Build_Assembly_Version = "$env:Build_Version" -replace "\-.*","";
$env:IsFullIntegrationBuild = "$env:APPVEYOR_PULL_REQUEST_NUMBER" -eq "" -And $env:Configuration -eq "Release";
}

UpdateAllPackagesGeneration;
$env:Build_Version = "$($env:APPVEYOR_BUILD_VERSION)";
$env:Release_Name = $env:Build_Version;
$env:IsFullIntegrationBuild = "$env:APPVEYOR_PULL_REQUEST_NUMBER" -eq "" -And $env:Configuration -eq "Release";
$env:Build_Assembly_Version = "$env:Build_Version" -replace "\-.*","";

"Building version: $env:Build_Version";
"Building assembly version: $env:Build_Assembly_Version";
Expand Down

0 comments on commit 042a738

Please sign in to comment.