aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2023-01-28 10:39:07 +0100
committerlonkaars <loek@pipeframe.xyz>2023-01-28 10:39:07 +0100
commit6ea07f6f4484df16d265e3d53694f2cc932dc4db (patch)
treee23d2b49c76a8b5d59411c1492a105238e83f503
parentc351f01b12a13c149e3946e2393071903dc245ce (diff)
add `release` target to makefile for publishing to github
-rw-r--r--anki-card-template/makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/anki-card-template/makefile b/anki-card-template/makefile
index c9a5ce7..013acb6 100644
--- a/anki-card-template/makefile
+++ b/anki-card-template/makefile
@@ -1,7 +1,7 @@
all: back-template.html front-template.html
.PRECIOUS: card.min.js card.min.css
-.PHONY: clean
+.PHONY: clean release
include ../common.mk
@@ -10,3 +10,6 @@ front-template.html: card.min.js card.min.css template.m4
clean:
$(RM) back-template.html front-template.html card.min.js card.min.css
+
+release: back-template.html front-template.html
+ gh release create --latest -t "card template `git describe --tags`" `git describe --tags` $^