diff --git a/build/ci/stage-sign-artifacts.yml b/build/ci/stage-sign-artifacts.yml index 34180c7c5..680e94aeb 100644 --- a/build/ci/stage-sign-artifacts.yml +++ b/build/ci/stage-sign-artifacts.yml @@ -1,5 +1,5 @@ -# Signs artifacts on tags built for release - +# Signs artifacts on release/* branches and non-scheduled main builds + stages: - stage: sign_artifacts displayName: Sign Artifacts @@ -14,7 +14,7 @@ stages: artifactName: output-windows usePipelineArtifactTasks: true checkoutType: self - ${{ if and(startsWith(variables['Build.SourceBranch'], 'refs/heads/release/'), not(eq(variables['Build.Reason'], 'PullRequest'))) }}: + ${{ if and(or(and(eq(variables['Build.SourceBranch'], 'refs/heads/main'), ne(variables['Build.Reason'], 'Schedule')), startsWith(variables['Build.SourceBranch'], 'refs/heads/release/')), not(eq(variables['Build.Reason'], 'PullRequest'))) }}: signType: Real ${{ else }}: signType: Test