Skip to content

Instantly share code, notes, and snippets.

@christophercliff
Created December 14, 2012 00:19
Show Gist options
  • Save christophercliff/4281358 to your computer and use it in GitHub Desktop.
Save christophercliff/4281358 to your computer and use it in GitHub Desktop.
Makefile for deploying a Wintersmith static site to Github Pages without exposing the source (assumes you're using the default build directory).
deploy:
rm -rf ./build
wintersmith build
cd ./build && \
git init . && \
git add . && \
git commit -m "Deploy"; \
git push "git@github.com:{YOUR NAME}/{YOUR REPO}.git" master:gh-pages --force && \
rm -rf .git
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment