Skip to content

Commit

Permalink
improve release script
Browse files Browse the repository at this point in the history
  • Loading branch information
cyrildiagne committed Dec 31, 2019
1 parent 05e74e4 commit 20ec029
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions hack/release.sh
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
#!/bin/bash
export VERSION=0.3.1

if [ -z "$1" ]; then
echo "ERROR: Version missing"
echo "Example usage: ./hack/release.sh 0.3.1"
exit 1
fi

VERSION=$1
echo "Releasing v$VERSION..."

# Tidy.
go mod tidy
Expand All @@ -9,6 +17,6 @@ git tag v$VERSION-preview -m "Preview release."
git push origin v$VERSION-preview

# Master.
git checkout master
git merge v$VERSION-preview
git push
# git checkout master
# git merge v$VERSION-preview
# git push

0 comments on commit 20ec029

Please sign in to comment.