Skip to content

Commit

Permalink
Validate release tag
Browse files Browse the repository at this point in the history
  • Loading branch information
deluan committed Oct 2, 2019
1 parent 6eb743e commit 6a131a0
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,11 @@ doc:
godoc -http=":6060" -goroot=$$GOPATH

release:
@if [[ ! "${V}" =~ ^[0-9]+\.[0-9]+\.[0-9]+.*$$ ]]; then echo "Usage: make release V=X.X.X"; exit 1; fi
go mod tidy
make test
git add .
git ci -m "Release ${VERSION}"
git tag ${VERSION}
git push origin ${VERSION}
git ci -m "Release v${V}"
git tag v${V}
git push origin v${V}
git push master

0 comments on commit 6a131a0

Please sign in to comment.