File tree Expand file tree Collapse file tree 1 file changed +11
-8
lines changed
Expand file tree Collapse file tree 1 file changed +11
-8
lines changed Original file line number Diff line number Diff line change @@ -17,13 +17,17 @@ jobs:
1717 - name : Checkout
1818 uses : actions/checkout@v4
1919
20- - name : Set up Go
21- uses : actions/setup-go@v5
22- with :
23- go-version : " 1.22"
24-
2520 - name : Install MCP Registry Publisher
26- run : go install github.com/modelcontextprotocol/registry/tools/publisher@latest
21+ run : |
22+ set -euo pipefail
23+ ARCH="$(uname -m)"
24+ if [ "$ARCH" = "x86_64" ]; then ARCH="amd64"; elif [ "$ARCH" = "aarch64" ]; then ARCH="arm64"; fi
25+ OS="$(uname -s | tr '[:upper:]' '[:lower:]')"
26+ URL="https://github.com/modelcontextprotocol/registry/releases/download/v1.0.0/mcp-publisher_1.0.0_${OS}_${ARCH}.tar.gz"
27+ curl -L "$URL" | tar xz mcp-publisher
28+ mkdir -p "$HOME/.local/bin"
29+ install -m 0755 mcp-publisher "$HOME/.local/bin/mcp-publisher"
30+ echo "$HOME/.local/bin" >> "$GITHUB_PATH"
2731
2832 - name : Publish to MCP Registry
2933 env :
3438
3539 # Publish. The CLI defaults may evolve; these flags keep it explicit.
3640 # If the CLI prefers envs, it will read MCP_REGISTRY_URL.
37- "$(go env GOPATH)"/bin/publisher \
38- publish \
41+ mcp-publisher publish \
3942 --mcp-file server.json \
4043 --registry-url "$MCP_REGISTRY_URL"
You can’t perform that action at this time.
0 commit comments