Include a tag annotation, sign tags

License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
This commit is contained in:
Hector Sanjuan 2017-11-15 23:39:22 +01:00
parent 81e1f3855e
commit 3726ef8c9d
2 changed files with 6 additions and 1 deletions

1
.gitignore vendored
View File

@ -1,3 +1,4 @@
tag_annotation
coverage.out
ipfs-cluster-service/ipfs-cluster-service
ipfs-cluster-ctl/ipfs-cluster-ctl

View File

@ -12,5 +12,9 @@ fi
sed -i "s/const Version.*$/const Version = \"$version\"/" version.go
sed -i "s/const Version.*$/const Version = \"$version\"/" ipfs-cluster-ctl/main.go
git commit -a -m "Release $version"
git tag v$version
lastver=`git tag -l | grep -E 'v[0-9]+\.[0-9]+\.[0-9]+' | tail -n 1`
echo "Tag for Release ${version}" > tag_annotation
echo >> tag_annotation
git log --pretty=oneline ${lastver}..HEAD >> tag_annotation
git tag -a -s -F tag_annotation v$version
gx release $version