Add make branches to build draft branches
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
parent
492e7885ab
commit
8a5ec56313
1 changed files with 8 additions and 1 deletions
9
Makefile
9
Makefile
|
@ -7,6 +7,13 @@ all:
|
|||
rm -rf public/*
|
||||
hugo --debug --destination public
|
||||
|
||||
branches:
|
||||
for branch in $(shell git branch --list "post-*"); do \
|
||||
git checkout $$branch; \
|
||||
hugo --debug --baseUrl "https://blog.bouah.net/_drafts/$$branch" \
|
||||
--buildDrafts --buildFuture --destination drafts/$$branch; \
|
||||
done
|
||||
|
||||
drafts:
|
||||
hugo --debug --baseUrl "https://blog.bouah.net/_drafts" \
|
||||
--buildDrafts --buildFuture --destination drafts
|
||||
|
@ -14,6 +21,6 @@ drafts:
|
|||
serve:
|
||||
hugo serve --debug --buildDrafts --buildFuture
|
||||
|
||||
.PHONY: drafts
|
||||
.PHONY: branches drafts
|
||||
# vim:ft=make
|
||||
#
|
||||
|
|
Loading…
Reference in a new issue