Use travis to host the site on github

This commit is contained in:
Alexis Métaireau 2018-12-08 18:23:04 +01:00
parent de7d4dc9a6
commit 1a551941be
3 changed files with 15 additions and 0 deletions

11
.travis.yml Normal file
View file

@ -0,0 +1,11 @@
language: python
branches:
only:
- master
install:
- pip install pelican ghp-import
script:
- make github
env:
global:
secure: ae9yhrae4XZIsBHRFGLUaRowFKYP9nQSbiSyu/ueXLOEIqMyDvuz7gwuOPaikOYKyOWJ6N9rQ6keWFNlCzuCop9OP2RBG3nEnHuD1oPoHig9w00hzKB9ME1RTI+moPQZBnLxR0e5Xb3D0lGsf3RKhaJI9RrkGxcxuJYx50m8t4w=

View file

@ -11,3 +11,7 @@ serve: html
regenerate: serve regenerate: serve
$(PELICAN) -r -s pelican.conf.py content $(PELICAN) -r -s pelican.conf.py content
github: html
ghp-import -n $(OUTPUTDIR)
@git push -fq https://${GH_TOKEN}@github.com/$(TRAVIS_REPO_SLUG).git gh-pages > /dev/null

Binary file not shown.