From 042a73855dc8fb7e036d5af42ec728259f44ab68 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexandre=20Rab=C3=A9rin?= Date: Wed, 2 Sep 2020 20:12:17 +0200 Subject: [PATCH] Fix package release builds. --- build/setupBuild.ps1 | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/build/setupBuild.ps1 b/build/setupBuild.ps1 index 40d7d8c..2bd7d35 100644 --- a/build/setupBuild.ps1 +++ b/build/setupBuild.ps1 @@ -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";