Add release script for easy tagging
All checks were successful
build / build-linux (push) Successful in 16s
All checks were successful
build / build-linux (push) Successful in 16s
This commit is contained in:
21
release.sh
Executable file
21
release.sh
Executable file
@@ -0,0 +1,21 @@
|
||||
#!/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."
|
||||
Reference in New Issue
Block a user