Skip to content

Commit

Permalink
add release script
Browse files Browse the repository at this point in the history
  • Loading branch information
mingfang committed Apr 26, 2020
1 parent f43554c commit f156034
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions release.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
if [ -z "GITHUB_TOKEN" ]
then
echo "export GITHUB_TOKEN=<>"
exit 1
fi

if [ $# -eq 0 ]; then
echo "Pass release version. e.g. v0.1.0"
exit 1
fi

VERSION=$1
echo "Releasing version $VERSION"
goreleaser --snapshot --rm-dist
git tag -a $VERSION -m "$VERSION"
git push origin $VERSION
goreleaser release --rm-dist

0 comments on commit f156034

Please sign in to comment.