Skip to content

Instantly share code, notes, and snippets.

@ShaunaGordon
Last active January 16, 2016 04:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ShaunaGordon/0cbf0b8f2d667c5ec794 to your computer and use it in GitHub Desktop.
Save ShaunaGordon/0cbf0b8f2d667c5ec794 to your computer and use it in GitHub Desktop.
Pelican, Travis, And Github -- Setting Up Automated Blog Updates
sudo apt-get install ruby1.9.1-dev build-essential
sudo gem install travis
travis encrypt GH_TOKEN=your_token --add [--override]
GITHUB_PAGES_BRANCH=master
github: publish
ghp-import -b $(GITHUB_PAGES_BRANCH) -n $(OUTPUTDIR)
@git push -fq https://${GH_TOKEN}@github.com/$(TRAVIS_REPO_SLUG).git $(GITHUB_PAGES_BRANCH) > /dev/null
EXTRA_PATH_METADATA = {'extra/CNAME': {'path': 'CNAME'}, 'extra/travis.yml': {'path': '.travis.yml'}}
Cheetah>=2.4.4
Jinja2>=2.8
Markdown>=2.6.5
MarkupSafe>=0.23
PyYAML>=3.10
Pygments>=2.0.2
SecretStorage>=2.0.0
Unidecode>=0.04.18
argparse>=1.2.1
beautifulsoup4>=4.4.1
blinker>=1.4
chardet>=2.0.1
colorama>=0.2.5
configobj>=4.7.2
disqus-python>=0.4.2
docutils>=0.12
feedgenerator>=1.7
ghp-import>=0.4.1
html5lib>=0.999
httplib2>=0.8
jsonpatch>=1.3
jsonpointer>=1.0
oauth>=1.0.1
pelican>=3.6.3
prettytable>=0.7.2
pyOpenSSL>=0.13
pycrypto>=2.6.1
pycurl>=7.19.3
pyserial>=2.6
python-dateutil>=2.4.2
pytz>=2015.7
requests>=2.2.1
simplejson>=3.3.1
six>=1.5.2
ssh-import-id>=3.21
urllib3>=1.7.1
wadllib>=1.3.2
wheel>=0.24.0
wsgiref>=0.1.2
zope.interface>=4.0.5
pelican-gist>=0.3
language: python
branches:
only:
- source
install:
- pip install -r requirements.txt
before_script:
- pelican-themes -i ./theme/elegant
script:
- make publish github
env:
global:
- secure: [Encrypted Travis Key Here]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment