diff --git a/Makefile b/Makefile index ea1900c..c0a09e0 100644 --- a/Makefile +++ b/Makefile @@ -11,6 +11,8 @@ devserver: release: @echo "Building production site into $(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) .PHONY: release