Skip to content

Commit dadefde

Browse files
committed
chore: mcp publish github action
1 parent ed253ca commit dadefde

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/publish-mcp.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# Workflow for publishing DBHub to the MCP Registry
2+
# Triggers when server.json is updated on main branch, or manually
3+
4+
name: Publish to MCP Registry
5+
6+
on:
7+
workflow_dispatch:
8+
push:
9+
branches:
10+
- main
11+
paths:
12+
- 'server.json'
13+
14+
jobs:
15+
publish:
16+
runs-on: ubuntu-latest
17+
permissions:
18+
id-token: write
19+
contents: read
20+
21+
steps:
22+
- name: Checkout repository
23+
uses: actions/checkout@v4
24+
25+
- name: Install MCP Publisher
26+
run: |
27+
curl -L "https://github.com/modelcontextprotocol/registry/releases/download/v1.1.0/mcp-publisher_1.1.0_$(uname -s | tr '[:upper:]' '[:lower:]')_$(uname -m | sed 's/x86_64/amd64/;s/aarch64/arm64/').tar.gz" | tar xz mcp-publisher
28+
29+
- name: Login to MCP Registry
30+
run: ./mcp-publisher login github-oidc
31+
32+
- name: Publish to MCP Registry
33+
run: ./mcp-publisher publish

0 commit comments

Comments
 (0)