diff --git a/.travis.yml b/.travis.yml index cc675dc..b98bf9d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -19,4 +19,5 @@ script: - bundle exec nanoc check mixed_content after_success: - chmod 600 ~/.ssh/id_rsa -- bundle exec nanoc deploy --target public +- chmod +x .travis/deploy.sh +- .travis/deploy.sh diff --git a/.travis/deploy.sh b/.travis/deploy.sh new file mode 100644 index 0000000..dc1fa56 --- /dev/null +++ b/.travis/deploy.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +if [[ $TRAVIS_BRANCH == 'master' ]] + bundle exec nanoc deploy --target public +fi