Skip to content

Commit 291e6ec

Browse files
committed
Move mut-redirects from deploy to publish
1 parent c637f38 commit 291e6ec

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,11 @@ html: migrate ## Builds this branch's HTML under build/<branch>/html
2828

2929
publish-build-only: ## Builds this branch's publishable HTML and other artifacts under build/public
3030
giza make publish
31+
if [ ${GIT_BRANCH} = master ]; then mut-redirects config/redirects -o build/public/.htaccess; fi
3132

3233
publish: migrate ## Build publishable artifacts, and also migrates assets
3334
giza make publish
35+
if [ ${GIT_BRANCH} = master ]; then mut-redirects config/redirects -o build/public/.htaccess; fi
3436

3537
stage: ## Host online for review
3638
mut-publish build/${GIT_BRANCH}/html ${STAGING_BUCKET} --prefix=${PROJECT} --stage ${ARGS}
@@ -41,7 +43,6 @@ fake-deploy: build/public/${GIT_BRANCH} ## Create a fake deployment in the stagi
4143
@echo "Hosted at ${STAGING_URL}/${PROJECT}/${GIT_BRANCH}/index.html"
4244

4345
deploy: build/public/${GIT_BRANCH} ## Deploy to the production bucket
44-
if [ ${GIT_BRANCH} = master ]; then mut-redirects config/redirects -o build/public/.htaccess; fi
4546
mut-publish build/public/ ${PRODUCTION_BUCKET} --prefix=${PROJECT} --deploy --redirects build/public/.htaccess ${ARGS}
4647

4748
@echo "Hosted at ${PRODUCTION_URL}/${PROJECT}/${GIT_BRANCH}"

0 commit comments

Comments
 (0)