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