diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 3b9057d..fb79665 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -16,19 +16,24 @@ permissions: contents: read jobs: - pypi-publish: - name: Upload release to PyPI + deploy: + runs-on: ubuntu-latest - environment: - name: pypi - url: https://pypi.org/p/agentmemory - permissions: - id-token: write # IMPORTANT: this permission is mandatory for trusted publishing + steps: - - uses: actions/checkout@v3 - - name: Set up Python - uses: actions/setup-python@v3 - with: - python-version: "3.x" - - name: Publish package distributions to PyPI - uses: pypa/gh-action-pypi-publish@release/v1 + - uses: actions/checkout@v3 + - name: Set up Python + uses: actions/setup-python@v3 + with: + python-version: '3.x' + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install build + - name: Build package + run: python -m build + - name: Publish package + uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29 + with: + user: ${{ secrets.pypi_username }} + password: ${{ secrets.pypi_password }} diff --git a/setup.py b/setup.py index 6bc177a..a1addcd 100644 --- a/setup.py +++ b/setup.py @@ -13,7 +13,7 @@ setup( name='agentmemory', - version='0.2.7', + version='0.2.10', description='Easy-to-use agent memory, powered by chromadb', long_description=long_description, # added this line long_description_content_type="text/markdown", # and this line