Skip to content

Commit

Permalink
Better gh-pages commit messages
Browse files Browse the repository at this point in the history
  • Loading branch information
crnkjck committed Jun 29, 2021
1 parent 4f1644e commit 0106add
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions Makefile
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

STATIC_FILES = index.html static/main.css static/img/favicon.ico
ELM_MAIN = src/Editor.elm
ELM_FILES = $(wildcard src/*.elm)
Expand Down Expand Up @@ -36,8 +35,7 @@ $(OUT_DIR)/%: $(SRC_DIR)/%
cp -av $(SRC_DIR)/$* $@


.PHONY: ghpublish commitGhPages
ghpublish: GITR=$(shell git log -1 --oneline)
ghpublish: GITB=$(shell git symbolic-ref HEAD | sed -e "s,refs/heads/,,")
.PHONY: ghpublish
ghpublish: export GITCMSG := $(shell git log -1 --oneline)
ghpublish: build
npx gh-pages -d build -m "Build: $(GITR)"
npx gh-pages --dist build --message "Build: $${GITCMSG}" $(GHPAGESOPTS)

0 comments on commit 0106add

Please sign in to comment.