Only deploy if key set
This commit is contained in:
parent
0dd220a4db
commit
c37ecae615
|
@ -3,7 +3,9 @@ python: 2.7
|
||||||
install:
|
install:
|
||||||
- "pip install -U pip"
|
- "pip install -U pip"
|
||||||
- "pip install git+https://github.com/lektor/lektor#egg=Lektor"
|
- "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:
|
cache:
|
||||||
directories:
|
directories:
|
||||||
- $HOME/.cache/pip
|
- $HOME/.cache/pip
|
||||||
|
|
Loading…
Reference in New Issue