Skip to content

Instantly share code, notes, and snippets.

@pankajmore
Created August 31, 2013 17:37
Show Gist options
  • Save pankajmore/6399624 to your computer and use it in GitHub Desktop.
Save pankajmore/6399624 to your computer and use it in GitHub Desktop.
language: haskell
branches:
only:
- source
env:
global:
- secure: "EwN3tW0Nu471w8/a3BJaCOpv8wZnMea+yklWSjAXIr0qSzNg9NASkLYvcufHTKv85NyWoiAVCYLueTmKCajExaN5H1pFVA1jOogaizKTawneb9EbJYzKilVnJHKB8dEEHoo6FaLbMCGdEzT48edIY7g0i2zy3W/xt/Y8jUjhyPk="
install:
- cabal install hakyll
- ghc --make site.hs
before_script:
- git checkout master
- cd _site
- git pull origin master
- cd ..
script: ./site build
after_script:
- cd _site
- git status
- git add --all
- git config --global user.email "[email protected]"
- git config --global user.name "Travis"
- git commit -m "snapshot $(date '+%m/%d/%y %H:%M')"
- git push "$REPO_URL" master | grep -v http
- cd ..
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment