Skip to content

Commit 55fffa4

Browse files
authored
Merge pull request #42 from onkernel/mason/fix-mcp-publish
ci: Install publisher via binary release
2 parents 66e26ed + 87c787c commit 55fffa4

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

.github/workflows/publish-mcp.yml

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff 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:
@@ -34,7 +38,6 @@ jobs:
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"

0 commit comments

Comments
 (0)