Skip to content

Commit

Permalink
Build docs for regular and PR builds, deploy only for regular
Browse files Browse the repository at this point in the history
  • Loading branch information
mloskot committed May 22, 2019
1 parent bb438b6 commit 7b2c921
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions gdal/doc/.azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
# Azure Pipelines to build GDAL documentation

trigger:
batch: true
branches:
include:
- master

pr:
autoCancel: true
branches:
include:
- master

variables:
#system.debug: true
configuration: release
Expand Down Expand Up @@ -28,11 +40,13 @@ jobs:
inputs:
secureFile: 'pdal-docs-ssh-key'
displayName: 'Get the deploy key'
condition: notin(variables['Build.Reason'], 'PullRequest')
- script: |
mkdir ~/.ssh && mv $DOWNLOADSECUREFILE_SECUREFILEPATH ~/.ssh/id_rsa
chmod 700 ~/.ssh && chmod 600 ~/.ssh/id_rsa
ssh-keyscan -t rsa github.com >> ~/.ssh/known_hosts
displayName: 'Deploy the key'
condition: notin(variables['Build.Reason'], 'PullRequest')
- script: |
mv gdal/doc/build/html gdal-docs
rm gdal-docs/gdal.pdf
Expand All @@ -48,3 +62,4 @@ jobs:
git commit -m "Update with https://github.com/OSGeo/gdal/commit/$BUILD_SOURCEVERSION"
git push -f origin master
displayName: 'Deploy the docs'
condition: notin(variables['Build.Reason'], 'PullRequest')

0 comments on commit 7b2c921

Please sign in to comment.