add deploy script which only deploys on master
This commit is contained in:
parent
784605d258
commit
9caec56fe7
2 changed files with 7 additions and 1 deletions
|
@ -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
|
||||
|
|
5
.travis/deploy.sh
Normal file
5
.travis/deploy.sh
Normal file
|
@ -0,0 +1,5 @@
|
|||
#!/bin/bash
|
||||
|
||||
if [[ $TRAVIS_BRANCH == 'master' ]]
|
||||
bundle exec nanoc deploy --target public
|
||||
fi
|
Loading…
Reference in a new issue