Skip to content

Commit 23a9ecb

Browse files
authored
Fix publish.yml (#17)
1 parent d5e4d17 commit 23a9ecb

File tree

1 file changed

+17
-8
lines changed

1 file changed

+17
-8
lines changed

.github/workflows/publish.yml

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,26 @@ name: Publish to MCP Registry
22

33
on:
44
push:
5-
branches:
6-
- main
7-
workflow_dispatch:
5+
tags:
6+
- 'v*'
87

98
jobs:
109
publish:
1110
runs-on: ubuntu-latest
11+
permissions:
12+
id-token: write
13+
contents: read
14+
1215
steps:
13-
- uses: actions/checkout@v3
16+
- name: Checkout code
17+
uses: actions/checkout@v4
18+
19+
- name: Install MCP Publisher
20+
run: |
21+
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
22+
23+
- name: Login to MCP Registry
24+
run: ./mcp-publisher login github-oidc
25+
1426
- name: Publish to MCP Registry
15-
uses: modelcontextprotocol/publish-action@v1
16-
with:
17-
registry_token: ${{ secrets.MCP_REGISTRY_TOKEN }}
18-
github_token: ${{ secrets.GITHUB_TOKEN }}
27+
run: ./mcp-publisher publish

0 commit comments

Comments
 (0)