ci: add push trigger to MCP registry publish workflow #1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Publish to MCP Registry | |
| on: | |
| push: | |
| branches: [main] | |
| release: | |
| types: [published] | |
| workflow_dispatch: | |
| jobs: | |
| publish: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install mcp-publisher | |
| run: | | |
| curl -L "https://github.com/modelcontextprotocol/registry/releases/latest/download/mcp-publisher_linux_amd64.tar.gz" | tar xz mcp-publisher | |
| chmod +x mcp-publisher | |
| - name: Login to MCP Registry | |
| run: | | |
| # Uses GitHub CLI token for authentication | |
| echo "${{ secrets.GITHUB_TOKEN }}" | ./mcp-publisher login github --token-stdin | |
| - name: Publish to MCP Registry | |
| run: ./mcp-publisher publish |