зеркало из https://github.com/DeGsoft/maui-linux.git
[Build] Fix release variable name
This commit is contained in:
Родитель
28580e8510
Коммит
c7e48da8ab
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче