20 lines
443 B
Bash
Executable File
20 lines
443 B
Bash
Executable File
#!/bin/bash
|
|
VERSION=$1
|
|
BRANCH=${2:-main}
|
|
|
|
if [ -z "$VERSION" ]; then
|
|
echo "Usage: ./create-release.sh <version> [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!"
|