[Build] Fix release variable name

This commit is contained in:
Rui Marinho 2019-05-25 00:02:44 +01:00
Родитель 28580e8510
Коммит c7e48da8ab
2 изменённых файлов: 2 добавлений и 6 удалений

Просмотреть файл

@ -127,12 +127,9 @@ jobs:
dependsOn: nuget_pack
pool:
name: $(signVmImage)
variables:
signBuild: $(Sign)
displayName: Sign Phase
steps:
- template: build/steps/build-sign.yml
condition: and(succeeded(), or(eq(variables['Sign'], 'true'), eq(variables['Build.SourceBranch'], 'refs/heads/master')))
condition: and(succeeded(), or(eq(variables['Sign'], 'true'), or(eq(variables['Build.SourceBranch'], 'refs/heads/master'), startsWith(variables['Build.SourceBranch'],'refs/tags/'))))

Просмотреть файл

@ -50,14 +50,13 @@ steps:
- powershell: |
$buildConfiguration = "Release"
$formsNugetVersion = "" + $env:XAMARINFORMSPACKAGEVERSION
$formsNugetVersion = "" + $env:nugetPackageVersion
Write-Host("Update nuspecs")
Get-ChildItem './.nuspec/*.nuspec' -Recurse | Foreach-Object {
(Get-Content $_) | Foreach-Object {
$_ -replace '\$version\$', $formsNugetVersion `
-replace '\$Configuration\$', $buildConfiguration `
-replace '\$IdAppend\$', ''
} | Set-Content $_
}
failOnStderr: true