From 9caec56fe79030471b5eeb59bb22fa3c8c6f3c68 Mon Sep 17 00:00:00 2001 From: Lorin Werthen Date: Mon, 18 Jul 2016 14:27:38 +0200 Subject: [PATCH] add deploy script which only deploys on master --- .travis.yml | 3 ++- .travis/deploy.sh | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 .travis/deploy.sh 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