Skip to content

Commit 2707c49

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

File tree

2 files changed

+12
-26
lines changed

2 files changed

+12
-26
lines changed

.github/workflows/publish.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ on:
88
jobs:
99
check:
1010
runs-on: ubuntu-latest
11-
permissions: {}
11+
permissions:
12+
id-token: write
1213
outputs:
1314
VERSION_EXISTS: ${{ steps.check-version.outputs.VERSION_EXISTS }}
1415
VERSION: ${{ steps.get-version.outputs.VERSION }}
@@ -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)