File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- .PHONY : all list templates
1+ .PHONY : all list release templates version
22
33
4+ VERSION := '0.1.9'
45LEAD := $(shell head -n 1 LEAD.md)
56
67
@@ -9,6 +10,17 @@ all: list
910list :
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+
1221templates :
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 )
You can’t perform that action at this time.
0 commit comments