Created
December 14, 2012 00:19
-
-
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).
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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