Skip to content

Commit 30df50f

Browse files
committed
Improve MCP publisher install step in publish workflow
Use curl -fsSL for robust download, make the fetched mcp-publisher executable, and verify the installed version.
1 parent edfb4c5 commit 30df50f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/publish-nuget.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,9 @@ jobs:
142142
143143
- name: Install MCP Publisher
144144
run: |
145-
curl -L "https://github.com/modelcontextprotocol/registry/releases/latest/download/mcp-publisher_$(uname -s | tr '[:upper:]' '[:lower:]')_$(uname -m | sed 's/x86_64/amd64/;s/aarch64/arm64/').tar.gz" | tar xz mcp-publisher
145+
curl -fsSL "https://github.com/modelcontextprotocol/registry/releases/latest/download/mcp-publisher_$(uname -s | tr '[:upper:]' '[:lower:]')_$(uname -m | sed 's/x86_64/amd64/;s/aarch64/arm64/').tar.gz" | tar xz mcp-publisher
146+
chmod +x mcp-publisher
147+
./mcp-publisher --version
146148
147149
- name: Login to MCP Registry
148150
run: ./mcp-publisher login github-oidc

0 commit comments

Comments
 (0)