Skip to content

Commit f2d2044

Browse files
committed
test
1 parent dac5d3e commit f2d2044

File tree

2 files changed

+27
-7
lines changed

2 files changed

+27
-7
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: 27 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,39 @@ on:
33
push:
44
tags:
55
- "v*.*.*"
6+
pull_request:
67
permissions:
78
contents: write
89
jobs:
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

0 commit comments

Comments
 (0)