1
0
Fork 0
mirror of https://github.com/sbrl/Pepperminty-Wiki.git synced 2024-12-22 13:45:02 +00:00

Write make target for syncing with gh-pages branch

This commit is contained in:
Starbeamrainbowlabs 2016-06-15 19:21:45 +01:00
parent 60505dfb0a
commit 0a8e24d11d

View file

@ -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.'