Reset production branch when releasing.
This commit is contained in:
parent
fba2ab9651
commit
9a046f33d1
4
Makefile
4
Makefile
@ -11,6 +11,8 @@ devserver:
|
|||||||
release:
|
release:
|
||||||
@echo "Building production site into $(PROD_DIST_DIR)"
|
@echo "Building production site into $(PROD_DIST_DIR)"
|
||||||
@jekyll build --destination $(PROD_DIST_DIR)
|
@jekyll build --destination $(PROD_DIST_DIR)
|
||||||
@echo "Pushing $(PROD_DIST_DIR) contents to the upstream production branch"
|
@echo "Resetting existing production branch"
|
||||||
|
@git push $(PROD_REMOTE) $(PROD_BRANCH) --delete
|
||||||
|
@echo "Pushing latest $(PROD_DIST_DIR) contents to the upstream production branch"
|
||||||
@git subtree push --prefix $(PROD_DIST_DIR) $(PROD_REMOTE) $(PROD_BRANCH)
|
@git subtree push --prefix $(PROD_DIST_DIR) $(PROD_REMOTE) $(PROD_BRANCH)
|
||||||
.PHONY: release
|
.PHONY: release
|
||||||
|
Reference in New Issue
Block a user