#!/bin/bash # Script to create and push a release tag # Usage: ./release.sh [message] if [ $# -lt 1 ]; then echo "Usage: $0 [message]" echo "Example: $0 v0.5.22 'Release v0.5.22'" exit 1 fi VERSION=$1 MESSAGE=${2:-"Release $VERSION"} echo "Creating tag $VERSION with message: $MESSAGE" git tag -a "$VERSION" -m "$MESSAGE" echo "Pushing tag $VERSION" git push local "$VERSION" echo "Tag $VERSION pushed. Workflow will build and release automatically."