Skip to content

Commit 78c890e

Browse files
authored
Merge pull request #53 from neo4j-contrib/fix-mcp-cypher-publish-action
fix bug in github action for mcp cypher
2 parents 3ccc3ff + a45ba67 commit 78c890e

File tree

1 file changed

+20
-8
lines changed

1 file changed

+20
-8
lines changed

.github/workflows/publish-cypher.yml

Lines changed: 20 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -55,13 +55,25 @@ jobs:
5555
url: https://pypi.org/project/mcp-neo4j-cypher/
5656

5757
steps:
58-
- name: Retrieve release distributions
59-
uses: actions/download-artifact@v4
60-
with:
61-
name: release-dists
62-
path: servers/mcp-neo4j-cypher/dist/
6358

64-
- name: Publish release distributions to PyPI
65-
uses: pypa/gh-action-pypi-publish@release/v1
59+
- uses: actions/checkout@v4
60+
61+
- name: Install uv
62+
uses: astral-sh/setup-uv@v5
63+
64+
- name: "Set up Python"
65+
uses: actions/setup-python@v5
6666
with:
67-
packages-dir: servers/mcp-neo4j-cypher/dist/
67+
python-version-file: "servers/mcp-neo4j-cypher/pyproject.toml"
68+
69+
- name: Build release distributions
70+
run: |
71+
cd servers/mcp-neo4j-cypher/
72+
uv build
73+
74+
- name: Publish release
75+
env:
76+
UV_PUBLISH_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
77+
run: |
78+
cd servers/mcp-neo4j-cypher/
79+
uv publish

0 commit comments

Comments
 (0)