ci: fix mcp-publisher download URL
- Change from wrong repo (mcp-publisher) to correct repo (registry) - Use proper tar.gz format with versioned release URL - Add tar extraction step - Update manual install instructions with correct URL
This commit is contained in:
@@ -169,14 +169,17 @@ jobs:
|
||||
|
||||
- name: Install mcp-publisher
|
||||
run: |
|
||||
# Download mcp-publisher with error handling
|
||||
curl -fsSL -o mcp-publisher https://github.com/modelcontextprotocol/mcp-publisher/releases/latest/download/mcp-publisher-linux-amd64 || {
|
||||
# Download mcp-publisher from correct registry repository
|
||||
# URL format: https://github.com/modelcontextprotocol/registry/releases/download/v1.0.0/mcp-publisher_1.0.0_linux_amd64.tar.gz
|
||||
curl -fsSL -o mcp-publisher.tar.gz "https://github.com/modelcontextprotocol/registry/releases/download/v1.0.0/mcp-publisher_1.0.0_linux_amd64.tar.gz" || {
|
||||
echo "⚠️ Failed to download mcp-publisher - MCP publish will be skipped"
|
||||
echo "Install manually: https://github.com/modelcontextprotocol/mcp-publisher"
|
||||
echo "Install manually: https://github.com/modelcontextprotocol/registry/releases"
|
||||
exit 0
|
||||
}
|
||||
tar -xzf mcp-publisher.tar.gz mcp-publisher
|
||||
chmod +x mcp-publisher
|
||||
sudo mv mcp-publisher /usr/local/bin/
|
||||
rm mcp-publisher.tar.gz
|
||||
|
||||
- name: Publish to MCP Registry
|
||||
run: |
|
||||
@@ -184,7 +187,8 @@ jobs:
|
||||
if ! command -v mcp-publisher &> /dev/null; then
|
||||
echo "⚠️ mcp-publisher not found - skipping MCP publish"
|
||||
echo "To publish manually:"
|
||||
echo " 1. Install mcp-publisher: https://github.com/modelcontextprotocol/mcp-publisher"
|
||||
echo " 1. Install mcp-publisher:"
|
||||
echo " curl -L \"https://github.com/modelcontextprotocol/registry/releases/download/v1.0.0/mcp-publisher_1.0.0_$(uname -s | tr '[:upper:]' '[:lower:]')_amd64.tar.gz\" | tar xz mcp-publisher"
|
||||
echo " 2. Run: mcp-publisher login github"
|
||||
echo " 3. Run: mcp-publisher publish"
|
||||
exit 0
|
||||
|
||||
Reference in New Issue
Block a user