File tree Expand file tree Collapse file tree 2 files changed +27
-7
lines changed
Expand file tree Collapse file tree 2 files changed +27
-7
lines changed Original file line number Diff line number Diff line change @@ -2,8 +2,6 @@ name: Python Application
22on :
33 push :
44 branches : [main]
5- tags :
6- - " v*.*.*"
75 pull_request :
86jobs :
97 test :
Original file line number Diff line number Diff line change 33 push :
44 tags :
55 - " v*.*.*"
6+ pull_request :
67permissions :
78 contents : write
89jobs :
910 publish :
1011 runs-on : ubuntu-latest
12+ permissions :
13+ id-token : write
14+ contents : read
15+
1116 steps :
1217 - uses : actions/checkout@v4
1318 - name : Create package artifact
1419 run : npx @anthropic-ai/mcpb pack
15- - name : Release
16- uses : softprops/action-gh-release@v2
17- with :
18- files : " *.mcpb"
19- draft : true
20+ # - name: Release
21+ # uses: softprops/action-gh-release@v2
22+ # with:
23+ # files: "*.mcpb"
24+ # draft: true
25+
26+ - name : Update fileSha256 in server.json
27+ run : |
28+ SHA256_HASH=$(sha256sum "mcp-youtube-transcript.mcpb" | awk '{print $1}')
29+ jq --arg hash "$SHA256_HASH" '.packages[0].fileSha256 = $hash' server.json > server_tmp.json
30+ mv server_tmp.json server.json
31+ cat server.json
32+
33+ - name : Install MCP Publisher
34+ run : |
35+ curl -L "https://github.com/modelcontextprotocol/registry/releases/download/latest/mcp-publisher_$(uname -s | tr '[:upper:]' '[:lower:]')_$(uname -m | sed 's/x86_64/amd64/;s/aarch64/arm64/').tar.gz" | tar xz mcp-publisher
36+
37+ - name : Login to MCP Registry
38+ run : ./mcp-publisher login github-oidc
39+
40+ # - name: Publish to MCP Registry
41+ # run: ./mcp-publisher publish
You can’t perform that action at this time.
0 commit comments