21 lines
488 B
Bash
Executable File
21 lines
488 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Script to create and push a release tag
|
|
# Usage: ./release.sh <version> [message]
|
|
|
|
if [ $# -lt 1 ]; then
|
|
echo "Usage: $0 <version> [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." |