Last active
February 14, 2017 22:16
-
-
Save laurelmay/a7abc4945e88835fbaeeb5b79147281b to your computer and use it in GitHub Desktop.
Snippets for use during the Travis demo
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
For this, copy everything BETWEEN (NOT including) the --- BEGIN --- and --- END --- for each section. | |
--- BEGIN Pelican File Header --- | |
Title: POST TITLE | |
Date: 2017-02-14 10:56 | |
Modified: 2017-02-14 10:56 | |
Category: CATEGORY | |
Tags: TAG1, TAG2 | |
Slug: slug-url | |
Authors: NAME | |
Summary: SUMMARY | |
--- END Pelican File Header--- | |
--- BEGIN .travis.yml --- | |
language: python | |
branches: | |
only: | |
- master | |
install: | |
- pip install pelican ghp-import python-dateutil gitpython Markdown | |
script: | |
- make publish github | |
env: | |
global: | |
- GH_USER=kylelaker | |
- GH_REPO=uug-travis-demo | |
- GH_BRANCH=gh-pages | |
--- END .travis.yml --- | |
--- BEGIN Makefile modifications --- | |
github: publish | |
ghp-import -m "Generate Pelican site with Travis CI" $(OUTPUTDIR) | |
git push -fq https://$(GH_USER):$(GH_TOKEN)@github.com/$(GH_USER)/$(GH_REPO).git $(GH_BRANCH) | |
--- END Makefile modifications --- |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment