chore(release): improve the make release script to also stage changes after bumping version

This commit is contained in:
Benex254
2024-10-05 12:29:15 +03:00
parent 2396018607
commit 172d912d8b

View File

@@ -5,4 +5,6 @@ VERSION=$1
[ "$VERSION" = "current" ] && fastanime --version && exit 0
sed -i "s/^version.*/version = \"$VERSION\"/" "$CLI_DIR/pyproject.toml" &&
sed -i "s/__version__.*/__version__ = \"v$VERSION\"/" "$CLI_DIR/fastanime/__init__.py" &&
git stage "$CLI_DIR/pyproject.toml" "$CLI_DIR/fastanime/__init__.py" &&
git commit -m "chore: bump version (v$VERSION)" &&
gh release create "v$VERSION"