Finished release.sh
This commit is contained in:
parent
dfbf400b45
commit
f21a116ce8
1 changed files with 6 additions and 2 deletions
|
@ -6,11 +6,15 @@ if [ -z "$VERSION" ]
|
||||||
then
|
then
|
||||||
echo "Error: VERSION needs to be set!"
|
echo "Error: VERSION needs to be set!"
|
||||||
else
|
else
|
||||||
|
git pull
|
||||||
echo "Release version: $VERSION"
|
echo "Release version: $VERSION"
|
||||||
# TODO: git tag and commit
|
|
||||||
while IFS='.' read -ra NUM; do
|
while IFS='.' read -ra NUM; do
|
||||||
echo "VERSION=${NUM[0]}.${NUM[1]}.$((NUM[2]+1)) \$@" > development-version.sh
|
echo "VERSION=${NUM[0]}.${NUM[1]}.$((NUM[2]+1)) \$@" > development-version.sh
|
||||||
done <<< "$VERSION"
|
done <<< "$VERSION"
|
||||||
|
|
||||||
echo "Version bumped in file 'development-version.sh'"
|
echo "Version bumped in file 'development-version.sh'"
|
||||||
|
|
||||||
|
git add -A && git commit -m "Version ${VERSION}"
|
||||||
|
git tag -a ${VERSION} -m "Release ${VERSION}"
|
||||||
|
git push --follow-tags
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue