Skip to content

Commit c949979

Browse files
chore: added GHA for publishing to OSS REgistry
1 parent e1ff4fc commit c949979

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/publish-oss.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Publish MCP Server
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*.*.*'
7+
8+
jobs:
9+
publish:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout repository
13+
uses: actions/checkout@v4
14+
15+
- name: Update server.json version from tag
16+
run: |
17+
VERSION=${GITHUB_REF_NAME#v}
18+
echo "Updating server.json to version $VERSION"
19+
jq --arg v "$VERSION" '.version = $v' server.json > server.json.tmp && mv server.json.tmp server.json
20+
21+
- name: Download mcp-publisher
22+
run: |
23+
curl -L "https://github.com/modelcontextprotocol/registry/releases/latest/download/mcp-publisher_linux_amd64" -o mcp-publisher
24+
chmod +x mcp-publisher
25+
26+
- name: Login and Publish to MCP Registry
27+
run: |
28+
./mcp-publisher login dns --domain webflow.com --private-key ${{ secrets.MCP_PRIVATE_KEY }}
29+
./mcp-publisher publish

0 commit comments

Comments
 (0)