Skip to content

Commit a1d9838

Browse files
committed
Refactor: Simplify to pure Python package
1 parent 84248b2 commit a1d9838

File tree

2 files changed

+24
-2
lines changed

2 files changed

+24
-2
lines changed

.github/workflows/publish-mcp.yml

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,26 @@ jobs:
4343
path: dist/
4444

4545
- name: Publish package to PyPI
46-
uses: pypa/gh-action-pypi-publish@release/v1
46+
uses: pypa/gh-action-pypi-publish@release/v1
47+
48+
publish-to-mcp:
49+
name: Publish to MCP Registry
50+
needs: [publish-to-pypi]
51+
runs-on: ubuntu-latest
52+
permissions:
53+
id-token: write
54+
steps:
55+
- uses: actions/checkout@v3
56+
57+
- name: Install MCP Publisher
58+
run: |
59+
curl -L "https://github.com/modelcontextprotocol/registry/releases/latest/download/mcp-publisher_$(uname -s | tr '[:upper:]' '[:lower:]')_$(uname -m | sed 's/x86_64/amd64/;s/aarch64/arm64/').tar.gz" | tar xz mcp-publisher
60+
61+
- name: Login to MCP Registry
62+
run: ./mcp-publisher login github-oidc
63+
64+
- name: Update server.json with version
65+
run: sed -i "s/__VERSION__/${{ github.ref_name }}/g" server.json
66+
67+
- name: Publish to MCP Registry
68+
run: ./mcp-publisher publish

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "stockfish-mcp"
7-
version = "0.2.0"
7+
version = "0.2.1"
88
authors = [
99
{ name="Stephan Botes", email="stephanbotes@gmail.com" },
1010
]

0 commit comments

Comments
 (0)