Skip to content

Commit

Permalink
handy make target for making a release
Browse files Browse the repository at this point in the history
I can never remember the right git commands
  • Loading branch information
thraxil committed Sep 14, 2017
1 parent 34c85f2 commit 49b7b63
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
samlare: *.go
go build .

release: samlare
echo "current version: "
@cat VERSION
@read -p "Version: " version; \
echo $$version > VERSION; \
git commit -a -m "release version $$version"; \
git tag -a v$$version -m "release $$version"; \
git push --tags origin master

.PHONY: release

0 comments on commit 49b7b63

Please sign in to comment.