Skip to content

Commit 6638303

Browse files
committed
chore: move registry publishing to the publish workflow
1 parent fe38463 commit 6638303

File tree

2 files changed

+11
-25
lines changed

2 files changed

+11
-25
lines changed

.github/workflows/publish.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ jobs:
7575
environment: Production
7676
permissions:
7777
contents: write
78+
id-token: write
7879
needs:
7980
- check
8081
if: needs.check.outputs.VERSION_EXISTS == 'false'
@@ -101,3 +102,13 @@ jobs:
101102
GH_TOKEN: ${{ github.token }}
102103
run: |
103104
gh release create ${{ needs.check.outputs.VERSION }} --title "${{ needs.check.outputs.VERSION }}" --generate-notes --target ${{ github.sha }} ${{ (needs.check.outputs.RELEASE_CHANNEL != 'latest' && '--prerelease') || ''}}
105+
106+
- name: Install MCP Publisher
107+
run: |
108+
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
109+
110+
- name: Login to MCP Registry
111+
run: ./mcp-publisher login github-oidc
112+
113+
- name: Publish to MCP Registry
114+
run: ./mcp-publisher publish

.github/workflows/registry-publish.yml

Lines changed: 0 additions & 25 deletions
This file was deleted.

0 commit comments

Comments
 (0)