From 3eb2c333db77a3d67139d4391a4f22b73e96c190 Mon Sep 17 00:00:00 2001 From: John Gallagher Date: Sun, 3 May 2015 21:50:50 -0400 Subject: [PATCH] Only publish docs from master --- .travis.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.travis.yml b/.travis.yml index 7773a9b..e7cc210 100644 --- a/.travis.yml +++ b/.travis.yml @@ -10,6 +10,8 @@ script: - cargo doc --no-deps after_success: | + [ $TRAVIS_BRANCH = master ] && + [ $TRAVIS_PULL_REQUEST = false ] && echo '' > target/doc/index.html && sudo pip install ghp-import && ghp-import -n target/doc &&