From 8464eedc682e4e5f2f7c688df34ef1a8c74c03a4 Mon Sep 17 00:00:00 2001 From: embetten <53092095+embetten@users.noreply.github.com> Date: Fri, 8 Mar 2024 12:49:01 -0800 Subject: [PATCH] Users/embetten/move publish steps (#489) --- build/build.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/build/build.yml b/build/build.yml index 0cd91f29..792a9dc8 100644 --- a/build/build.yml +++ b/build/build.yml @@ -183,8 +183,9 @@ steps: - script: dotnet pack MicrosoftCredentialProvider.sln -c $(BuildConfiguration) -o $(Build.ArtifactStagingDirectory)\$(BuildConfiguration) -p:${{ parameters.nuspecProperties }} displayName: dotnet pack -- task: PublishPipelineArtifact@1 - displayName: Publish Artifact $(Build.BuildNumber) - inputs: - artifact: '$(Build.BuildNumber)' - targetPath: '$(Build.ArtifactStagingDirectory)\$(BuildConfiguration)\' \ No newline at end of file +- ${{ if eq(parameters.publish, 'true') }}: + - task: PublishPipelineArtifact@1 + displayName: Publish Artifact $(Build.BuildNumber) + inputs: + artifact: '$(Build.BuildNumber)' + targetPath: '$(Build.ArtifactStagingDirectory)\$(BuildConfiguration)\'