Skip to content

Commit fb1affe

Browse files
committed
Added make release
1 parent 307f7aa commit fb1affe

1 file changed

Lines changed: 13 additions & 1 deletion

File tree

Makefile

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
.PHONY: all list templates
1+
.PHONY: all list release templates version
22

33

4+
VERSION := '0.1.9'
45
LEAD := $(shell head -n 1 LEAD.md)
56

67

@@ -9,6 +10,17 @@ all: list
910
list:
1011
@grep '^\.PHONY' Makefile | cut -d' ' -f2- | tr ' ' '\n'
1112

13+
release:
14+
git checkout master && git pull origin && git fetch -p && git diff
15+
@echo "\nContinuing in 10 seconds. Press <CTRL+C> to abort\n" && sleep 10
16+
@git log --pretty=format:"%C(yellow)%h%Creset %s%Cgreen%d" --reverse -20
17+
@echo "\nReleasing v$(VERSION) in 10 seconds. Press <CTRL+C> to abort\n" && sleep 10
18+
git commit -a -m 'v$(VERSION)' && git tag -a v$(VERSION) -m 'v$(VERSION)'
19+
git push --follow-tags
20+
1221
templates:
1322
sed -i -E "s/@(\w*)/@$(LEAD)/" .github/issue_template.md
1423
sed -i -E "s/@(\w*)/@$(LEAD)/" .github/pull_request_template.md
24+
25+
version:
26+
@echo $(VERSION)

0 commit comments

Comments
 (0)