Make docs only build and publish on master

This commit is contained in:
Syrus 2020-01-15 12:41:21 +01:00
parent 5a6afe4e68
commit 84beb446d9

View File

@ -215,7 +215,7 @@ jobs:
vmImage: "ubuntu-16.04"
variables:
rust_toolchain: nightly-2019-08-15
# condition: in(variables['Build.SourceBranch'], 'refs/heads/master', 'refs/heads/staging', 'refs/heads/trying')
condition: in(variables['Build.SourceBranch'], 'refs/heads/master', 'refs/heads/staging', 'refs/heads/trying')
steps:
- checkout: self
submodules: true
@ -288,8 +288,7 @@ jobs:
displayName: Deploy API Documentation to GitHub
pool:
vmImage: "ubuntu-16.04"
variables:
rust_toolchain: nightly-2019-12-19
condition: in(variables['Build.SourceBranch'], 'refs/heads/master')
steps:
- checkout: self
- task: DownloadPipelineArtifact@2