[Python-checkins] Only upload docs for CI build and not pull requests (GH-6945) (GH-6948)

Steve Dower webhook-mailer at python.org
Thu May 17 14:30:13 EDT 2018


https://github.com/python/cpython/commit/346762698cc6a5e9a47fa6a9e5dbb0491112e508
commit: 346762698cc6a5e9a47fa6a9e5dbb0491112e508
branch: 3.6
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: Steve Dower <steve.dower at microsoft.com>
date: 2018-05-17T14:30:09-04:00
summary:

Only upload docs for CI build and not pull requests (GH-6945) (GH-6948)

(cherry picked from commit 48b1f3773cecb0aec2b14d972bf8453e4e8f807f)

Co-authored-by: Steve Dower <steve.dower at microsoft.com>

files:
M .vsts/docs.yml

diff --git a/.vsts/docs.yml b/.vsts/docs.yml
index efa1e871656d..62f6123adb31 100644
--- a/.vsts/docs.yml
+++ b/.vsts/docs.yml
@@ -37,6 +37,7 @@ steps:
 
 - task: PublishBuildArtifacts at 1
   displayName: 'Publish build'
+  condition: and(succeeded(), ne(variables['Build.Reason'], 'PullRequest'))
   inputs:
     PathToPublish: '$(build.sourcesDirectory)/Doc/build'
     ArtifactName: build



More information about the Python-checkins mailing list