blog.notmyidea.org/Makefile
2018-12-08 18:23:04 +01:00

17 lines
402 B
Makefile

PELICAN=pelican
html:
$(PELICAN) -s pelican.conf.py content
upload: html
rsync -P -rvz --delete output/* artichaut:/home/www/blog.notmyidea.org
serve: html
cd output && python -m pelican.server 8000&
regenerate: serve
$(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