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

(cherry picked from commit 48b1f3773c)

Co-authored-by: Steve Dower <steve.dower@microsoft.com>
This commit is contained in:
Miss Islington (bot) 2018-05-17 11:06:03 -07:00 committed by GitHub
parent 56882db4f7
commit d27bc910b5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View 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