We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4511ddf commit 34f7e68Copy full SHA for 34f7e68
Makefile
@@ -19,7 +19,7 @@ commit:
19
local:
20
@:
21
22
-GIT_BRANCH=$(shell git rev-parse --abbrev-ref HEAD)
+GIT_BRANCH := $(shell git rev-parse --abbrev-ref HEAD)
23
ifeq ($(STAGING_USERNAME),)
24
USER=$(shell whoami)
25
else
@@ -77,6 +77,8 @@ clean-html:
77
## Builds this branch's publishable HTML and other artifacts under
78
## build/public
79
publish:
80
+ if [ ${GIT_BRANCH} = master ]; then rm -rf build/public; fi;
81
+ rm -rf build/${GIT_BRANCH}
82
giza make publish
83
if [ ${GIT_BRANCH} = master ]; then mut-redirects config/redirects -o build/public/.htaccess; fi
84
0 commit comments