Skip to content

Commit a3fcaa0

Browse files
committed
add a step to register new versions with the mcp registry
1 parent 380fa66 commit a3fcaa0

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.github/workflows/publish-to-pypi.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ on:
1111
jobs:
1212
deploy:
1313
runs-on: ubuntu-latest
14+
permissions:
15+
id-token: write
16+
contents: read
1417
if: ${{ (github.event_name == 'release' || (github.event_name == 'workflow_run' && github.event.workflow_run.conclusion == 'success')) && github.ref == 'refs/heads/main' }}
1518
steps:
1619
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
@@ -41,6 +44,16 @@ jobs:
4144
PYPI_API_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
4245
run: |
4346
twine upload dist/* -u __token__ -p $PYPI_API_TOKEN
47+
48+
- name: Install MCP Publisher
49+
run: |
50+
curl -L "https://github.com/modelcontextprotocol/registry/releases/download/v1.0.0/mcp-publisher_1.0.0_$(uname -s | tr '[:upper:]' '[:lower:]')_$(uname -m | sed 's/x86_64/amd64/;s/aarch64/arm64/').tar.gz" | tar xz mcp-publisher
51+
52+
- name: Login to MCP Registry (OIDC)
53+
run: ./mcp-publisher login github-oidc
54+
55+
- name: Publish to MCP Registry
56+
run: ./mcp-publisher publish
4457

4558
- name: Extract package version
4659
id: get_version

0 commit comments

Comments
 (0)