mirror of
https://github.com/corda/corda.git
synced 2024-12-29 09:18:58 +00:00
9bb3d6b972
git-subtree-dir: sgx-jvm/avian git-subtree-mainline:f978eab8d1
git-subtree-split:09e4fe60d0
32 lines
958 B
Bash
Executable File
32 lines
958 B
Bash
Executable File
#!/bin/bash
|
|
# This script was originally written by maxiaohao in the aws-mock GitHub project.
|
|
# https://github.com/treelogic-swe/aws-mock/
|
|
|
|
if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then
|
|
|
|
echo "Start to publish lastest Javadoc to gh-pages..."
|
|
|
|
cd build/
|
|
|
|
if test -d gh-pages/avian-web
|
|
then
|
|
cd gh-pages/avian-web
|
|
git pull
|
|
else
|
|
git clone --quiet https://${GH_TOKEN}@github.com/ReadyTalk/readytalk.github.io gh-pages > /dev/null
|
|
cd gh-pages/avian-web
|
|
git config user.email "travis@travis-ci.org"
|
|
git config user.name "travis-ci"
|
|
fi
|
|
|
|
git rm -rf ./javadoc
|
|
cp -Rf ../javadoc ./javadoc
|
|
git add -f .
|
|
git commit -m "Latest javadoc on successful Travis build $TRAVIS_BUILD_NUMBER auto-pushed to readytalk.github.io"
|
|
if ! git push -fq origin master &> /dev/null; then
|
|
echo "Error pushing gh-pages to origin. Bad GH_TOKEN? GitHub down?"
|
|
else
|
|
echo "Done magic with auto publishment to readytalk.github.io."
|
|
fi
|
|
fi
|