summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile34
1 files changed, 0 insertions, 34 deletions
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)