From 5d3bf981de974d2c31cf2f72bbcb088c90254f00 Mon Sep 17 00:00:00 2001 From: Christopher Felegy Date: Sat, 16 Mar 2019 16:33:09 -0400 Subject: [PATCH] ci: move deploy condition to deploy.yml --- azure-pipelines.yml | 5 ----- azure/deploy.yml | 6 ++++++ 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 3e1bddb3c..45f0fdc7b 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -17,8 +17,3 @@ jobs: steps: - template: azure/build.yml - template: azure/deploy.yml - condition: | - and ( - succeeded(), - eq(variables['Build.SourceBranch'], 'refs/heads/ci/azure') - ) diff --git a/azure/deploy.yml b/azure/deploy.yml index 52663df3f..77f0bec36 100644 --- a/azure/deploy.yml +++ b/azure/deploy.yml @@ -10,3 +10,9 @@ steps: # TODO: build nuspec - task: PublishBuildArtifacts@1 + +condition: | + and ( + succeeded(), + eq(variables['Build.SourceBranch'], 'refs/heads/ci/azure') + )