File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -30,11 +30,19 @@ jobs:
3030 set -e
3131 OS=$(uname -s | tr '[:upper:]' '[:lower:]')
3232 ARCH=$(uname -m | sed 's/x86_64/amd64/;s/aarch64/arm64/')
33- curl -L "https://github.com/modelcontextprotocol/registry/releases/download/v1.0.0/mcp-publisher_1.0.0_${OS}_${ARCH}.tar.gz" \
33+ echo "Get the latest release version"
34+ LATEST_VERSION=$(curl -s https://api.github.com/repos/modelcontextprotocol/registry/releases/latest | jq -r '.tag_name')
35+ echo "Installing MCP Publisher version: $LATEST_VERSION"
36+ echo "Download and extract the latest release"
37+ curl -L "https://github.com/modelcontextprotocol/registry/releases/download/${LATEST_VERSION}/mcp-publisher_${LATEST_VERSION#v}_${OS}_${ARCH}.tar.gz" \
3438 | tar xz mcp-publisher
3539
3640 - name : Login to MCP Registry (OIDC)
37- run : ./mcp-publisher login github-oidc
41+ run : |
42+ echo "Login to MCP Registry (OIDC)"
43+ ./mcp-publisher login github-oidc
3844
3945 - name : Publish server.json to MCP Registry
40- run : ./mcp-publisher publish
46+ run : |
47+ echo "Publish server.json to MCP Registry"
48+ ./mcp-publisher publish
You can’t perform that action at this time.
0 commit comments