From 14ad23760ee0d276ead7ca2ae5fddf59006f0179 Mon Sep 17 00:00:00 2001 From: Gerald Versluis Date: Mon, 22 Feb 2021 21:01:45 +0100 Subject: [PATCH] Fix build signing (#958) * Update azure-pipelines.yml * Update azure-pipelines.yml --- azure-pipelines.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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/'))))