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)\'