Skip to content

Commit ae3250e

Browse files
committed
👷 Publish mcp server after npm
1 parent 77166c8 commit ae3250e

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

.github/actions/github-registry/action.yml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,3 @@ runs:
6666
subject-name: ghcr.io/${{ github.repository }}
6767
subject-digest: ${{ steps.push.outputs.digest }}
6868
push-to-registry: true
69-
- name: Publish MCP server
70-
shell: bash
71-
run: |
72-
sed -i "s/0.0.0-dev/${GITHUB_REF_NAME}/g" server.json
73-
mcp_publisher="mcp-publisher_$(uname -s | tr '[:upper:]' '[:lower:]')_$(uname -m | sed 's/x86_64/amd64/;s/aarch64/arm64/').tar.gz"
74-
curl -L "https://github.com/modelcontextprotocol/registry/releases/latest/download/${mcp_publisher}" | tar xz mcp-publisher
75-
./mcp-publisher login github-oidc
76-
./mcp-publisher publish || echo "Failed to publish MCP server, but the image has been pushed successfully"

.github/workflows/publish.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ jobs:
108108
sparse-checkout: |
109109
npm
110110
scripts/npm-publish.sh
111+
server.json
111112
LICENSE
112113
README.md
113114
sparse-checkout-cone-mode: false
@@ -122,3 +123,10 @@ jobs:
122123
run: |
123124
VERSION="${GITHUB_REF_NAME#v}"
124125
scripts/npm-publish.sh "$VERSION" "${{ github.workspace }}/dist"
126+
- name: Publish MCP server
127+
run: |
128+
sed -i "s/0.0.0-dev/${GITHUB_REF_NAME#v}/g" server.json
129+
mcp_publisher="mcp-publisher_$(uname -s | tr '[:upper:]' '[:lower:]')_$(uname -m | sed 's/x86_64/amd64/;s/aarch64/arm64/').tar.gz"
130+
curl -L "https://github.com/modelcontextprotocol/registry/releases/latest/download/${mcp_publisher}" | tar xz mcp-publisher
131+
./mcp-publisher login github-oidc
132+
./mcp-publisher publish || echo "Failed to publish MCP server"

0 commit comments

Comments
 (0)