Only deploy if key set

This commit is contained in:
Armin Ronacher 2015-12-22 13:34:07 +01:00
parent 0dd220a4db
commit c37ecae615
1 changed files with 3 additions and 1 deletions

View File

@ -3,7 +3,9 @@ python: 2.7
install:
- "pip install -U pip"
- "pip install git+https://github.com/lektor/lektor#egg=Lektor"
script: "lektor build && lektor deploy production"
script:
- "lektor build"
- "if [ ! -z \"$LEKTOR_DEPLOY_KEY\" ]; then lektor deploy production; fi"
cache:
directories:
- $HOME/.cache/pip