Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
30 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/bin/bash | ||
|
||
if [ -n "$encrypted_452b0f7e50bb_key" ]; then | ||
openssl aes-256-cbc -K $encrypted_452b0f7e50bb_key -iv $encrypted_452b0f7e50bb_iv -in scripts/ci/pdaldocs-private.key.enc -out scripts/ci/pdaldocs-private.key-d | ||
cp scripts/ci/pdaldocs-private.key ~/.ssh/id_rsa | ||
chmod 600 ~/.ssh/id_rsa | ||
echo -e "Host *\n\tStrictHostKeyChecking no\n" > ~/.ssh/config | ||
fi; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,25 @@ | ||
#!/bin/bash | ||
|
||
builddir=$1 | ||
destdir=$2 | ||
DATE=$(date +'%y.%m.%d %H:%M:%S') | ||
|
||
git clone git@github.com:hobu/greyhound.git $destdir/pdaldocs | ||
cd $destdir/pdaldocs | ||
git checkout gh-pages | ||
|
||
echo "deploying docs for $TRAVIS_BUILD_DIR/docs" | ||
|
||
docker run -e "AWS_SECRET_ACCESS_KEY=$AWS_SECRET_ACCESS_KEY" -e "AWS_ACCESS_KEY_ID=$AWS_ACCESS_KEY_ID" -v $TRAVIS_BUILD_DIR:/data -w /data/doc hobu/entwine-docs aws s3 sync ./build/html/ s3://greyhound.io --acl public-read | ||
cd $builddir/html | ||
cp -rf * $destdir/pdaldocs | ||
|
||
cd $builddir/latex/ | ||
cp PDAL.pdf $destdir/pdaldocs | ||
|
||
cd $destdir/pdaldocs | ||
git config user.email "pdal@hobu.net" | ||
git config user.name "PDAL Travis docsbot" | ||
|
||
git add -A | ||
git commit -m "update with results of commit https://github.com/hobu/greyhound/commit/$TRAVIS_COMMIT for ${DATE}" | ||
git push origin master | ||
|
Binary file not shown.