Use Travis deployment
Docs: https://docs.travis-ci.com/user/deployment/
This commit is contained in:
parent
4d3482a698
commit
10010ced77
|
@ -5,11 +5,15 @@ install:
|
||||||
- "pip install git+https://github.com/lektor/lektor#egg=Lektor"
|
- "pip install git+https://github.com/lektor/lektor#egg=Lektor"
|
||||||
script:
|
script:
|
||||||
- "lektor build"
|
- "lektor build"
|
||||||
- "test \"$TRAVIS_PULL_REQUEST\" == \"false\" && test \"$TRAVIS_BRANCH\" == \"master\" && lektor deploy production || exit 0"
|
|
||||||
cache:
|
cache:
|
||||||
directories:
|
directories:
|
||||||
- $HOME/.cache/pip
|
- $HOME/.cache/pip
|
||||||
- $HOME/.cache/lektor/builds
|
- $HOME/.cache/lektor/builds
|
||||||
|
deploy:
|
||||||
|
provider: script
|
||||||
|
script: lektor deploy production
|
||||||
|
on:
|
||||||
|
branch: master
|
||||||
addons:
|
addons:
|
||||||
ssh_known_hosts: flow.srv.pocoo.org
|
ssh_known_hosts: flow.srv.pocoo.org
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue