File tree Expand file tree Collapse file tree 1 file changed +17
-8
lines changed Expand file tree Collapse file tree 1 file changed +17
-8
lines changed Original file line number Diff line number Diff line change @@ -2,17 +2,26 @@ name: Publish to MCP Registry
22
33on :
44 push :
5- branches :
6- - main
7- workflow_dispatch :
5+ tags :
6+ - ' v*'
87
98jobs :
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
You can’t perform that action at this time.
0 commit comments