add deploy script which only deploys on master

This commit is contained in:
Lorin Werthen 2016-07-18 14:27:38 +02:00
parent 784605d258
commit 9caec56fe7
2 changed files with 7 additions and 1 deletions

View file

@ -19,4 +19,5 @@ script:
- bundle exec nanoc check mixed_content - bundle exec nanoc check mixed_content
after_success: after_success:
- chmod 600 ~/.ssh/id_rsa - chmod 600 ~/.ssh/id_rsa
- bundle exec nanoc deploy --target public - chmod +x .travis/deploy.sh
- .travis/deploy.sh

5
.travis/deploy.sh Normal file
View file

@ -0,0 +1,5 @@
#!/bin/bash
if [[ $TRAVIS_BRANCH == 'master' ]]
bundle exec nanoc deploy --target public
fi