File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change 1111jobs :
1212 deploy :
1313 runs-on : ubuntu-latest
14+ permissions :
15+ id-token : write
16+ contents : read
1417 if : ${{ (github.event_name == 'release' || (github.event_name == 'workflow_run' && github.event.workflow_run.conclusion == 'success')) && github.ref == 'refs/heads/main' }}
1518 steps :
1619 - uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
4144 PYPI_API_TOKEN : ${{ secrets.PYPI_API_TOKEN }}
4245 run : |
4346 twine upload dist/* -u __token__ -p $PYPI_API_TOKEN
47+
48+ - name : Install MCP Publisher
49+ run : |
50+ 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
51+
52+ - name : Login to MCP Registry (OIDC)
53+ run : ./mcp-publisher login github-oidc
54+
55+ - name : Publish to MCP Registry
56+ run : ./mcp-publisher publish
4457
4558 - name : Extract package version
4659 id : get_version
You can’t perform that action at this time.
0 commit comments