Merge pull request #38 from neo4j-contrib/update-readmes #12
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This workflow will upload a Python Package to PyPI when a release is created | |
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python#publishing-to-package-registries | |
# This workflow uses actions that are not certified by GitHub. | |
# They are provided by a third-party and are governed by | |
# separate terms of service, privacy policy, and support | |
# documentation. | |
name: Publish Neo4j MCP Memory Python Package | |
on: | |
push: | |
tags: | |
- mcp-neo4j-memory-v* | |
release: | |
types: [published] | |
tags: | |
- mcp-neo4j-memory-v* | |
permissions: | |
contents: read | |
jobs: | |
pypi-publish: | |
runs-on: ubuntu-latest | |
permissions: | |
# IMPORTANT: this permission is mandatory for trusted publishing | |
id-token: write | |
# Dedicated environments with protections for publishing are strongly recommended. | |
# For more information, see: https://docs.github.com/en/actions/deployment/targeting-different-environments/using-environments-for-deployment#deployment-protection-rules | |
environment: | |
name: pypi | |
url: https://pypi.org/project/mcp-neo4j-memory/ | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install uv | |
uses: astral-sh/setup-uv@v5 | |
- name: "Set up Python" | |
uses: actions/setup-python@v5 | |
with: | |
python-version-file: "servers/mcp-neo4j-memory/pyproject.toml" | |
- name: Build release distributions | |
run: | | |
cd servers/mcp-neo4j-memory/ | |
uv build | |
- name: Publish release | |
env: | |
UV_PUBLISH_TOKEN: ${{ secrets.PYPI_API_TOKEN }} | |
run: | | |
cd servers/mcp-neo4j-memory/ | |
uv publish |