Skip to content

Instantly share code, notes, and snippets.

@kleinmatic
Last active April 18, 2017 19:26
Show Gist options
  • Save kleinmatic/5420476 to your computer and use it in GitHub Desktop.
Save kleinmatic/5420476 to your computer and use it in GitHub Desktop.
Github Pages workflow via a simple Makefile
# Put this in the root directory of your repository in a file called
# "Makefile". When you're ready to re/publish, just open terminal, cd
# to the directory containing your repo and type "make publish". As
# you can see, it's just a bunch of commands so you can easily add
# more steps to this workflow. Idea by Jeff Larson
publish:
git checkout gh-pages
git merge master
git push origin gh-pages
git checkout master
.PHONY: publish
@macloo
Copy link

macloo commented Apr 20, 2013

This is great! Can't wait to try it! Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment