From 63f413891d5adc596e4d51dfba4d0d23fdea3ca4 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Sun, 31 Jul 2016 10:16:40 -0700 Subject: Stop generating a static site. --- Makefile | 34 ---------------------------------- 1 file changed, 34 deletions(-) delete mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile deleted file mode 100644 index e7428d1..0000000 --- a/Makefile +++ /dev/null @@ -1,34 +0,0 @@ -.PHONY: clean -clean: - hugo --cleanDestinationDir - -.PHONY: server -server: clean - hugo serve --buildDrafts --buildFuture - -.PHONY: deps -deps: - brew install hugo - -.PHONY: build -build: clean - hugo - -DEPLOY_BRANCH := master -DEPLOY_DIR := public - -.PHONY: publish -publish: build - git symbolic-ref HEAD refs/heads/$(DEPLOY_BRANCH) - git --work-tree $(DEPLOY_DIR) reset --mixed --quiet - git --work-tree $(DEPLOY_DIR) add --all - if git --work-tree $(DEPLOY_DIR) diff-index --quiet HEAD -- ; then \ - echo "no changes" ; \ - else \ - git --work-tree $(DEPLOY_DIR) commit -m "deploy " ; \ - git push origin $(DEPLOY_BRANCH) ; \ - fi - - git symbolic-ref HEAD refs/heads/posts - git reset --mixed - [ -d $(DEPLOY_DIR) ] && rm -rf $(DEPLOY_DIR) -- cgit v1.2.3