diff --git a/hack/release.sh b/hack/release.sh old mode 100644 new mode 100755 index 9f12cd9..e963d89 --- a/hack/release.sh +++ b/hack/release.sh @@ -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 @@ -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 \ No newline at end of file +# git checkout master +# git merge v$VERSION-preview +# git push \ No newline at end of file