Skip to content

Commit

Permalink
Bump version to 22.03.0
Browse files Browse the repository at this point in the history
  • Loading branch information
adrysn committed May 17, 2022
1 parent cfe897c commit 16e0bff
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions release.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
#!/bin/bash
set -e
cd "$(dirname "$0")"

# Release version: 19.09.1, 20.03.2a, etc
VERSION=$1
if [[ -z $VERSION ]]; then
echo "Please enter the release version!"
exit -1
fi

echo
echo "Current release version:" $(cat docs/VERSION)
echo "Release $VERSION?"
read -p "- type 'yes' to proceed: " yn
if [ "$yn" != "yes" ] ; then
echo "Release cancelled."
exit;
fi

# Update version
echo "$VERSION" >| docs/VERSION
echo "docs/VERSION updated."

# Bump to next version
git add -u
git commit -m "Bump version to $VERSION"
git tag -a "$VERSION" -m "Web-UI User Manual v$VERSION"
git push -u origin main
git push -u origin main --tags
echo "Bumped version to $VERSION."

0 comments on commit 16e0bff

Please sign in to comment.