File tree Expand file tree Collapse file tree 2 files changed +3
-6
lines changed
Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Original file line number Diff line number Diff line change 1919 - name : Fetch tags
2020 run : git fetch --tags
2121
22- - name : Install jq
23- run : sudo apt-get update && sudo apt-get install -y jq
24-
2522 - name : Install MCP Publisher
2623 run : |
2724 curl -L "https://github.com/modelcontextprotocol/registry/releases/download/v1.0.0/mcp-publisher_1.0.0_$(uname -s | tr '[:upper:]' '[:lower:]')_$(uname -m | sed 's/x86_64/amd64/;s/aarch64/arm64/').tar.gz" | tar xz mcp-publisher
4239 TAG_VERSION=$(echo "$LATEST_TAG" | sed 's/^v//')
4340 echo "Using latest tag: $LATEST_TAG"
4441 fi
45- jq ".version = \"$TAG_VERSION\" | .packages[].version = \"$ TAG_VERSION\"" server.json > server.json.tmp && mv server.json.tmp server.json
42+ sed -i "s/\${VERSION}/$ TAG_VERSION/g" server.json
4643 echo "Updated server.json version to $TAG_VERSION"
4744
4845 - name : Login to MCP Registry
Original file line number Diff line number Diff line change 77 "url" : " https://github.com/github/github-mcp-server" ,
88 "source" : " github"
99 },
10- "version" : " 0.0.0 " ,
10+ "version" : " ${VERSION} " ,
1111 "packages" : [
1212 {
1313 "registryType" : " oci" ,
1414 "registryBaseUrl" : " https://ghcr.io" ,
1515 "identifier" : " ghcr.io/github/github-mcp-server" ,
16- "version" : " 0.0.0 " ,
16+ "version" : " ${VERSION} " ,
1717 "runtimeHint" : " docker" ,
1818 "transport" : {
1919 "type" : " stdio"
You can’t perform that action at this time.
0 commit comments