diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..9d1095b --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,33 @@ +name: Publish to PyPI + +on: + release: + types: [published] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 + with: + python-version: "3.12" + - run: pip install build + - run: python -m build + - uses: actions/upload-artifact@v4 + with: + name: dist + path: dist/ + + publish: + needs: build + runs-on: ubuntu-latest + environment: pypi + permissions: + id-token: write + steps: + - uses: actions/download-artifact@v4 + with: + name: dist + path: dist/ + - uses: pypa/gh-action-pypi-publish@release/v1 diff --git a/CITATION.cff b/CITATION.cff index 803785c..7b72963 100644 --- a/CITATION.cff +++ b/CITATION.cff @@ -4,7 +4,7 @@ title: "whitetree: exact Mahalanobis nearest-neighbour search with insert and de authors: - family-names: Choi given-names: Juhyuk -version: 0.1.0 +version: 0.1.1 date-released: 2026-09-13 license: MIT repository-code: "https://github.com/whitetree-dev/whitetree" diff --git a/pyproject.toml b/pyproject.toml index 44f4913..10a8da6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "whitetree" -version = "0.1.0" +version = "0.1.1" description = "Exact Mahalanobis nearest neighbour search with insert and delete" readme = "README.md" license = "MIT" diff --git a/src/whitetree/__init__.py b/src/whitetree/__init__.py index 6e1ebf4..5faece8 100644 --- a/src/whitetree/__init__.py +++ b/src/whitetree/__init__.py @@ -13,4 +13,4 @@ from .mahalanobis import MahalanobisIndex __all__ = ["MahalanobisIndex", "DynamicKDTree"] -__version__ = "0.1.0" +__version__ = "0.1.1"