File tree Expand file tree Collapse file tree 1 file changed +33
-0
lines changed
Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments