From 0a8e24d11d72b95e1d7a1757160037fa829d67f4 Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Wed, 15 Jun 2016 19:21:45 +0100 Subject: [PATCH] Write make target for syncing with gh-pages branch --- Makefile | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index e9f12e6..c946052 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ .DEFAULT_GOAL := peppermint -.PHONY: setupApiDoc peppermint docs +.PHONY: setupApiDoc peppermint docs gh-pages ApiDocPresent := $(shell sh -c apidoc --help 1\>/dev/null && rm -rf doc/) @@ -21,3 +21,11 @@ ifndef ApiDocPresent npm install apidoc --global endif @echo [peppermint] Check complete + +gh-pages: + @echo [peppermint/gh-pages] Syncing master branch with gh-pages branch + git checkout gh-pages + git rebase master + git push origin gh-pages + git checkout master + @echo '[peppermint/gh-pages] Sync complete.'