Last active
April 18, 2017 19:26
-
-
Save kleinmatic/5420476 to your computer and use it in GitHub Desktop.
Github Pages workflow via a simple Makefile
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
# 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is great! Can't wait to try it! Thank you.