Skip to content

Commit

Permalink
try uploading doc builds to s3
Browse files Browse the repository at this point in the history
  • Loading branch information
hobu committed Feb 7, 2020
1 parent 9b4e486 commit b6313b5
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions scripts/azp/doc.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
# -*- mode: yaml -*-

variables:
- group: aws-credentials
jobs:
- job: linux
- job: docs
pool:
vmImage: ubuntu-16.04
container:
Expand All @@ -20,7 +22,13 @@ jobs:
displayName: 'Make HTML'
- script: |
cd doc
make pdf
make latexpdf
ninja
displayName: 'Make PDF'
- script: |
export AWS_ACCESS_KEY_ID = variables['aws-credentials.AWS_ACCESS_KEY_ID']
export AWS_SECRET_ACCESS_KEY = variables['aws-credentials.AWS_SECRET_ACCESS_KEY']
cd doc/build
aws s3 sync . "s3://pdal/docs/$BUILD_SOURCEVERSION/" --acl public-read
displayName: 'Upload https://github.com/OSGeo/gdal/commit/$BUILD_SOURCEVERSION to https://pdal.s3.amazonaws.com/docs/$BUILD_SOURCEVERSION/html/'

0 comments on commit b6313b5

Please sign in to comment.