]> granicus.if.org Git - python/commitdiff
Only upload docs for CI build and not pull requests (GH-6945) (GH-6948)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 17 May 2018 18:30:09 +0000 (11:30 -0700)
committerSteve Dower <steve.dower@microsoft.com>
Thu, 17 May 2018 18:30:09 +0000 (14:30 -0400)
(cherry picked from commit 48b1f3773cecb0aec2b14d972bf8453e4e8f807f)

Co-authored-by: Steve Dower <steve.dower@microsoft.com>
.vsts/docs.yml

index efa1e871656de83119988da97027097315500129..62f6123adb31fef26c51df1e984e7e836b39965e 100644 (file)
@@ -37,6 +37,7 @@ steps:
 
 - task: PublishBuildArtifacts@1
   displayName: 'Publish build'
+  condition: and(succeeded(), ne(variables['Build.Reason'], 'PullRequest'))
   inputs:
     PathToPublish: '$(build.sourcesDirectory)/Doc/build'
     ArtifactName: build