18 lines
259 B
Bash
Executable File
18 lines
259 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -e
|
|
|
|
VERSION="$1"
|
|
MESSAGE="$2"
|
|
|
|
if [ -z "$VERSION" ] || [ -z "$MESSAGE" ]; then
|
|
echo "Usage: $0 <version> <commit message>"
|
|
exit 1
|
|
fi
|
|
|
|
git add .
|
|
git commit -m "$MESSAGE"
|
|
git tag -a "$VERSION" -m "$VERSION"
|
|
git push
|
|
git push --tags
|
|
|