diff --git a/azure-pipelines.yml b/azure-pipelines.yml index dae6306c3..956ed9cd8 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -183,8 +183,8 @@ jobs: configuration: Release msbuildArguments: '/t:Pack /p:PackageVersion=$(NugetPackageVersion) /p:PackageOutputPath="$(Build.ArtifactStagingDirectory)/nuget"' - - ${{ if and(eq(variables['System.TeamProject'], 'devdiv'), ne(variables['System.DefinitionId'], '13296')) }}: + - ${{ if eq(variables['System.TeamProject'], 'devdiv') }}: - template: sign-artifacts/jobs/v2.yml@internal-templates parameters: dependsOn: [ build_windows ] - condition: startsWith(variables['Build.SourceBranch'], 'refs/tags/') + condition: and(succeeded(), or(eq(variables['Sign'], 'true'), or(eq(variables['Build.SourceBranch'], 'refs/heads/main'), startsWith(variables['Build.SourceBranch'],'refs/tags/'))))