Skip to content

Instantly share code, notes, and snippets.

@ramnathv
Created October 14, 2012 19:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ramnathv/3889577 to your computer and use it in GitHub Desktop.
Save ramnathv/3889577 to your computer and use it in GitHub Desktop.
Deploying to Github Pages
# Makefile
GITHUB_REPO ?= yourname/project
# Sends the documentation to gh-pages.
deploy: docs
cd docs && \
git init . && \
git add . && \
git commit -m "Update documentation."; \
git push "git@github.com:$(GITHUB_REPO).git" master:gh-pages --force && \
rm -rf .git
.PHONY: deploy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment