File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed
Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 6666 subject-name : ghcr.io/${{ github.repository }}
6767 subject-digest : ${{ steps.push.outputs.digest }}
6868 push-to-registry : true
69- - name : Publish MCP server
70- shell : bash
71- run : |
72- sed -i "s/0.0.0-dev/${GITHUB_REF_NAME}/g" server.json
73- mcp_publisher="mcp-publisher_$(uname -s | tr '[:upper:]' '[:lower:]')_$(uname -m | sed 's/x86_64/amd64/;s/aarch64/arm64/').tar.gz"
74- curl -L "https://github.com/modelcontextprotocol/registry/releases/latest/download/${mcp_publisher}" | tar xz mcp-publisher
75- ./mcp-publisher login github-oidc
76- ./mcp-publisher publish || echo "Failed to publish MCP server, but the image has been pushed successfully"
Original file line number Diff line number Diff line change @@ -108,6 +108,7 @@ jobs:
108108 sparse-checkout : |
109109 npm
110110 scripts/npm-publish.sh
111+ server.json
111112 LICENSE
112113 README.md
113114 sparse-checkout-cone-mode : false
@@ -122,3 +123,10 @@ jobs:
122123 run : |
123124 VERSION="${GITHUB_REF_NAME#v}"
124125 scripts/npm-publish.sh "$VERSION" "${{ github.workspace }}/dist"
126+ - name : Publish MCP server
127+ run : |
128+ sed -i "s/0.0.0-dev/${GITHUB_REF_NAME#v}/g" server.json
129+ mcp_publisher="mcp-publisher_$(uname -s | tr '[:upper:]' '[:lower:]')_$(uname -m | sed 's/x86_64/amd64/;s/aarch64/arm64/').tar.gz"
130+ curl -L "https://github.com/modelcontextprotocol/registry/releases/latest/download/${mcp_publisher}" | tar xz mcp-publisher
131+ ./mcp-publisher login github-oidc
132+ ./mcp-publisher publish || echo "Failed to publish MCP server"
You can’t perform that action at this time.
0 commit comments