Skip to content

Commit b2c4518

Browse files
authored
Feature/sdg/registry (#162)
* Modified mcp-publisher to use latest release
1 parent 6ec1a45 commit b2c4518

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

.github/workflows/publish_mcp.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)