Skip to content

Instantly share code, notes, and snippets.

@tamouse
Last active August 29, 2015 14:09
Show Gist options
  • Save tamouse/038124f9ff2df27d03d5 to your computer and use it in GitHub Desktop.
Save tamouse/038124f9ff2df27d03d5 to your computer and use it in GitHub Desktop.
jekyll deploy script
#!/bin/sh
#
# Simple deploy script for this blog.
: ${DEPLOY:=_deploy}
: ${BRANCH:=HEAD}
jekyll build -d $DEPLOY
cd $DEPLOY
git add --all
git commit -m "Published $(date)"
git push -fu origin $BRANCH
cd ..
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment