chore(ci): only publish master docs

This commit is contained in:
Sean McArthur
2017-06-16 13:06:46 -07:00
parent e92b57c4f5
commit e868373037
3 changed files with 1 additions and 11 deletions

View File

@@ -9,6 +9,7 @@ cargo doc --no-deps
git clone --branch gh-pages "https://$TOKEN@github.com/${TRAVIS_REPO_SLUG}.git" deploy_docs > /dev/null 2>&1
cd deploy_docs
git config user.name "Sean McArthur"
git config user.email "sean.monstar@gmail.com"
@@ -16,16 +17,6 @@ if [ "$TRAVIS_TAG" = "" ]; then
rm -rf master
mv ../target/doc ./master
echo "<meta http-equiv=refresh content=0;url=hyper/index.html>" > ./master/index.html
else
rm -rf $TRAVIS_TAG
mv ../target/doc ./$TRAVIS_TAG
echo "<meta http-equiv=refresh content=0;url=hyper/index.html>" > ./$TRAVIS_TAG/index.html
latest=$(echo * | tr " " "\n" | sort -V -r | head -n1)
if [ "$TRAVIS_TAG" = "$latest" ]; then
echo "<meta http-equiv=refresh content=0;url=$latest/hyper/index.html>" > index.html
fi
fi

View File

View File

@@ -1 +0,0 @@
<script type="text/javascript" src="/docs/hyper.js" async defer></script>