From 46c71b7b19def4697aadeb209a962626b4bc1729 Mon Sep 17 00:00:00 2001 From: Armin Ronacher Date: Thu, 24 Dec 2015 00:46:11 +0100 Subject: [PATCH] Only deploy if on master --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index cdc86b59..e99912da 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,7 +5,7 @@ install: - "pip install git+https://github.com/lektor/lektor#egg=Lektor" script: - "lektor build" - - "if [ ! -z \"$LEKTOR_DEPLOY_KEY\" ]; then lektor deploy production; fi" + - "if [ ! -z \"$LEKTOR_DEPLOY_KEY\" ] && [ \"$TRAVIS_BRANCH\" == \"master\" ]; then lektor deploy production; fi" cache: directories: - $HOME/.cache/pip