Skip to content

Commit ed7bcbb

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

File tree

2 files changed

+11
-26
lines changed

2 files changed

+11
-26
lines changed

.github/workflows/publish.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ on:
88
jobs:
99
check:
1010
runs-on: ubuntu-latest
11-
permissions: {}
1211
outputs:
1312
VERSION_EXISTS: ${{ steps.check-version.outputs.VERSION_EXISTS }}
1413
VERSION: ${{ steps.get-version.outputs.VERSION }}
@@ -75,6 +74,7 @@ jobs:
7574
environment: Production
7675
permissions:
7776
contents: write
77+
id-token: write
7878
needs:
7979
- check
8080
if: needs.check.outputs.VERSION_EXISTS == 'false'
@@ -101,3 +101,13 @@ jobs:
101101
GH_TOKEN: ${{ github.token }}
102102
run: |
103103
gh release create ${{ needs.check.outputs.VERSION }} --title "${{ needs.check.outputs.VERSION }}" --generate-notes --target ${{ github.sha }} ${{ (needs.check.outputs.RELEASE_CHANNEL != 'latest' && '--prerelease') || ''}}
104+
105+
- name: Install MCP Publisher
106+
run: |
107+
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
108+
109+
- name: Login to MCP Registry
110+
run: ./mcp-publisher login github-oidc
111+
112+
- name: Publish to MCP Registry
113+
run: ./mcp-publisher publish

.github/workflows/registry-publish.yml

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

0 commit comments

Comments
 (0)