-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
26 lines (26 loc) · 951 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
language: python
sudo: false
env:
global:
- secure: "TV2O4vSQB3zFt1Kajs/ewRNBg6As3TNp9vvKHaVIdv34IwgDeHJZiZzkJoGJ\nn/Vh8cj1BYsqbKHu+r0UPFqcG1GxeznJMN8wRWqohYxiPBtojFqyy7zKW63t\nBf+YaMRwtJy6Da4lqnDhG3MI/5L6E/1Z8A0mt213cJWU2MzSDe0="
install:
- pip install pelican typogrify
script:
- pelican
after_success:
- git log -n1 --format="format:%s%n%n$TRAVIS_COMMIT_RANGE" > /tmp/blog-commit
- git log -n1 --format="format:%an" > /tmp/blog-author
- git log -n1 --format="format:%ae" > /tmp/blog-author-email
- git clone -b gh-pages https://$GITHUB_TOKEN:[email protected]/earthreader/blog.git /tmp/blog-out;
pushd /tmp/blog-out/;
git config user.name "`cat /tmp/blog-author`";
git config user.email "`cat /tmp/blog-author-email`";
git rm -r .;
touch .nojekyll;
echo -n blog.earthreader.org > CNAME;
popd
- cp -r output/* /tmp/blog-out/;
- cd /tmp/blog-out/;
git add .;
git commit -a -F /tmp/blog-commit;
git push origin gh-pages