You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# This workflow will upload a Python Package to PyPI when a release is created
2
+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python#publishing-to-package-registries
3
+
4
+
# This workflow uses actions that are not certified by GitHub.
5
+
# They are provided by a third-party and are governed by
6
+
# separate terms of service, privacy policy, and support
7
+
# documentation.
8
+
9
+
name: Publish Neo4j MCP Data Modeling Package
10
+
11
+
on:
12
+
push:
13
+
tags:
14
+
- mcp-neo4j-data-modeling-v*
15
+
workflow_dispatch: # Allows manual triggering of the workflow
16
+
17
+
permissions:
18
+
contents: read
19
+
20
+
jobs:
21
+
release-build:
22
+
runs-on: ubuntu-latest
23
+
24
+
steps:
25
+
- uses: actions/checkout@v4
26
+
27
+
- uses: actions/setup-python@v5
28
+
with:
29
+
python-version: "3.x"
30
+
31
+
- name: Build release distributions
32
+
run: |
33
+
cd servers/mcp-neo4j-data-modeling/
34
+
python -m pip install build
35
+
python -m build
36
+
37
+
- name: Upload distributions
38
+
uses: actions/upload-artifact@v4
39
+
with:
40
+
name: release-dists
41
+
path: servers/mcp-neo4j-data-modeling/dist/
42
+
43
+
pypi-publish:
44
+
runs-on: ubuntu-latest
45
+
needs:
46
+
- release-build
47
+
permissions:
48
+
# IMPORTANT: this permission is mandatory for trusted publishing
49
+
id-token: write
50
+
51
+
# Dedicated environments with protections for publishing are strongly recommended.
52
+
# For more information, see: https://docs.github.com/en/actions/deployment/targeting-different-environments/using-environments-for-deployment#deployment-protection-rules
0 commit comments