Skip to content

Instantly share code, notes, and snippets.

@bvandgrift
Created October 20, 2012 16:27
Show Gist options
  • Save bvandgrift/3923842 to your computer and use it in GitHub Desktop.
Save bvandgrift/3923842 to your computer and use it in GitHub Desktop.
deploy script for pushing compiled nanoc to github pages. see http://bvandgrift.github.com/nanoc-pages-demo
#!/usr/bin/env bash
if [[ -z $1 ]]; then
echo "usage: deploy \"commit message\""
else
echo "Deploying with commit message: $1"
cd output
git add .
git commit -am "$1"
git push
echo "DONE."
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment