mirror of
https://github.com/basicmachines-co/basic-memory
synced 2026-06-21 13:47:35 +00:00
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:
@@ -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
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user