#!/bin/bash VERSION=$1 BRANCH=${2:-main} if [ -z "$VERSION" ]; then echo "Usage: ./create-release.sh [branch]" exit 1 fi git tag -a "$VERSION" -m "Release $VERSION" git push origin "$VERSION" tea releases create \ --tag "$VERSION" \ --target "$BRANCH" \ --title "OverUB $VERSION" \ --note "$(git log $(git describe --tags --abbrev=0 HEAD^)..HEAD --pretty=format:'- %s')" echo "Release $VERSION created successfully!"