[Build] Move from master to main

This commit is contained in:
Rui Marinho 2020-06-24 18:58:14 +01:00 коммит произвёл Samantha Houts
Родитель 719fc7a604
Коммит e9e5c68360
2 изменённых файлов: 6 добавлений и 6 удалений

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

@ -30,7 +30,7 @@ resources:
trigger:
branches:
include:
- master
- main
- 3.*
- 4.*
tags:
@ -44,7 +44,7 @@ pr:
autoCancel: false
branches:
include:
- master
- main
- 4.*
- 3.*
@ -53,7 +53,7 @@ schedules:
displayName: Daily midnight build
branches:
include:
- master
- main
stages:
- stage: windows
@ -291,6 +291,6 @@ stages:
msbuild
steps:
- template: build/steps/build-sign.yml
condition: and(succeeded(), ne(variables['signVmImage'], ''), or(eq(variables['Sign'], 'true'), or(eq(variables['Build.SourceBranch'], 'refs/heads/master'), startsWith(variables['Build.SourceBranch'],'refs/tags/'))))
condition: and(succeeded(), ne(variables['signVmImage'], ''), or(eq(variables['Sign'], 'true'), or(eq(variables['Build.SourceBranch'], 'refs/heads/main'), startsWith(variables['Build.SourceBranch'],'refs/tags/'))))

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

@ -53,7 +53,7 @@ steps:
}
failOnStderr: true
displayName: 'Update nuspecs'
condition: and(succeeded(), or(eq(variables['DefaultBuildConfiguration'], 'Release'), eq(variables['Build.SourceBranch'], 'refs/heads/master'), startsWith(variables['Build.SourceBranch'],'refs/tags/')))
condition: and(succeeded(), or(eq(variables['DefaultBuildConfiguration'], 'Release'), eq(variables['Build.SourceBranch'], 'refs/heads/main'), startsWith(variables['Build.SourceBranch'],'refs/tags/')))
- task: NuGetCommand@2
displayName: 'Make NuGet Package Release'
@ -64,7 +64,7 @@ steps:
packDestination: '$(Build.ArtifactStagingDirectory)/nuget/release'
versioningScheme: byEnvVar
versionEnvVar: nugetPackageVersion
condition: and(succeeded(), or(eq(variables['DefaultBuildConfiguration'], 'Release'), eq(variables['Build.SourceBranch'], 'refs/heads/master'), startsWith(variables['Build.SourceBranch'],'refs/tags/')))
condition: and(succeeded(), or(eq(variables['DefaultBuildConfiguration'], 'Release'), eq(variables['Build.SourceBranch'], 'refs/heads/main'), startsWith(variables['Build.SourceBranch'],'refs/tags/')))
- task: PublishBuildArtifacts@1
displayName: 'Publish Artifact: nuget'