18 lines
492 B
Bash
Executable File
18 lines
492 B
Bash
Executable File
#!/bin/sh
|
|
|
|
set -e
|
|
uv version --bump patch
|
|
VER=$(uv version --short)
|
|
sed -i".bak" "s/__version__ = \"[0-9.]*\"\(.*\)$/__version__ = \"$VER\"\1/" hbd/__init__.py
|
|
sed -i".bak" "s/__version__ = \"[0-9.]*\"\(.*\)$/__version__ = \"$VER\"\1/" scripts/hbc_mini.py
|
|
|
|
# commit pyproject.toml
|
|
git commit -m "version $VER" pyproject.toml hbd/__init__.py scripts/hbc_mini.py
|
|
git push
|
|
# tag version
|
|
git tag -a v$VER -m "Version $VER"
|
|
git push --tags
|
|
|
|
rm hbd/__init__.py.bak
|
|
rm scripts/hbc_mini.py.bak
|