2021-01-25 07:44:17 +00:00
|
|
|
#!/usr/bin/env bash
|
2021-09-16 06:51:42 +00:00
|
|
|
set -e
|
|
|
|
|
2021-01-25 07:44:17 +00:00
|
|
|
parent_path=$( cd "$(dirname "${BASH_SOURCE[0]}")" || exit ; pwd -P )
|
|
|
|
cd "$parent_path" || exit
|
|
|
|
|
2021-09-10 16:16:47 +00:00
|
|
|
if [ 1 -eq "$#" ]
|
2021-01-25 07:44:17 +00:00
|
|
|
then
|
2021-09-10 07:56:16 +00:00
|
|
|
echo "Version bump to $1"
|
2021-11-02 06:27:06 +00:00
|
|
|
sed --in-place --regexp-extended 's/"([0-9]*.[0-9].[0-9])"/"'"$1"'"/g' brewman/brewman/__version__.py
|
2021-09-10 07:56:16 +00:00
|
|
|
git add brewman/brewman/__version__.py
|
2021-11-02 06:27:06 +00:00
|
|
|
sed --in-place --regexp-extended 's/version = "([0-9]*.[0-9].[0-9])"/version = "'"$1"'"/g' brewman/pyproject.toml
|
2021-09-10 07:56:16 +00:00
|
|
|
git add brewman/pyproject.toml
|
2024-05-31 17:21:01 +00:00
|
|
|
sed --in-place --regexp-extended 's/version: '\''([0-9]*.[0-9].[0-9])'\''/version: '\'"$1"\''/g' overlord/src/app/app.environment.ts
|
|
|
|
git add overlord/src/app/app.environment.ts
|
2021-11-02 06:27:06 +00:00
|
|
|
sed --in-place --regexp-extended 's/"version": "([0-9]*.[0-9].[0-9])"/"version": "'"$1"'"/g' overlord/package.json
|
2021-09-10 07:56:16 +00:00
|
|
|
git add overlord/package.json
|
|
|
|
git commit -m "Version Bump v$1"
|
|
|
|
git tag "v$1"
|
|
|
|
else
|
|
|
|
echo "No version bump"
|
2021-01-25 07:44:17 +00:00
|
|
|
fi
|
|
|
|
git push
|
|
|
|
git tag --delete latest
|
|
|
|
git tag latest
|
|
|
|
git push --delete origin latest
|
|
|
|
git push --tags
|