Skip to content

Commit 3f621c6

Browse files
committed
chore: Modify workflows to adjust triggers and integrate MCP publishing
1 parent dac5d3e commit 3f621c6

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

.github/workflows/python-app.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ name: Python Application
22
on:
33
push:
44
branches: [main]
5-
tags:
6-
- "v*.*.*"
75
pull_request:
86
jobs:
97
test:

.github/workflows/release.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
tags:
55
- "v*.*.*"
66
permissions:
7+
id-token: write
78
contents: write
89
jobs:
910
publish:
@@ -17,3 +18,16 @@ jobs:
1718
with:
1819
files: "*.mcpb"
1920
draft: true
21+
- name: Update fileSha256 in server.json
22+
run: |
23+
SHA256_HASH=$(sha256sum "mcp-youtube-transcript.mcpb" | awk '{print $1}')
24+
jq --arg hash "$SHA256_HASH" '.packages[0].fileSha256 = $hash' server.json > server_tmp.json
25+
mv server_tmp.json server.json
26+
cat server.json
27+
- name: Install MCP Publisher
28+
run: |
29+
curl -L "https://github.com/modelcontextprotocol/registry/releases/download/v1.2.3/mcp-publisher_1.2.3_linux_amd64.tar.gz" | tar xz mcp-publisher
30+
- name: Login to MCP Registry
31+
run: ./mcp-publisher login github-oidc
32+
- name: Publish to MCP Registry
33+
run: ./mcp-publisher publish

0 commit comments

Comments
 (0)