fix: simplify versioning for release workflow

- Use static API version 'v0' instead of dynamic package version
- Remove version verification step in release workflow
- Dynamic versioning handled by uv-dynamic-versioning at build time
This commit is contained in:
phernandez
2025-06-09 15:25:20 -05:00
parent 2abf626c46
commit 126d1655e6
2 changed files with 6 additions and 11 deletions
+4 -10
View File
@@ -32,17 +32,11 @@ jobs:
uv sync
uv build
- name: Verify version matches tag
- name: Verify build succeeded
run: |
# Get version from built package
PACKAGE_VERSION=$(uv run python -c "import basic_memory; print(basic_memory.__version__)")
TAG_VERSION=${GITHUB_REF_NAME#v} # Remove 'v' prefix from tag
echo "Package version: $PACKAGE_VERSION"
echo "Tag version: $TAG_VERSION"
if [ "$PACKAGE_VERSION" != "$TAG_VERSION" ]; then
echo "Version mismatch! Package: $PACKAGE_VERSION, Tag: $TAG_VERSION"
exit 1
fi
# Verify that build artifacts exist
ls -la dist/
echo "Build completed successfully"
- name: Create GitHub Release
uses: softprops/action-gh-release@v2
+2 -1
View File
@@ -1,3 +1,4 @@
"""basic-memory - Local-first knowledge management combining Zettelkasten with knowledge graphs"""
__version__ = "0.13.0b5"
# API version for FastAPI - independent of package version
__version__ = "v0"