File tree Expand file tree Collapse file tree 2 files changed +28
-15
lines changed Expand file tree Collapse file tree 2 files changed +28
-15
lines changed Original file line number Diff line number Diff line change 8080 if : needs.check.outputs.VERSION_EXISTS == 'false'
8181 steps :
8282 - uses : GitHubSecurityLab/actions-permissions/monitor@v1
83- - uses : mongodb-js/devtools-shared/actions/setup-bot-token@main
84- id : app-token
85- with :
86- app-id : ${{ vars.DEVTOOLS_BOT_APP_ID }}
87- private-key : ${{ secrets.DEVTOOLS_BOT_PRIVATE_KEY }}
8883 - uses : actions/checkout@v5
8984 - uses : actions/setup-node@v6
9085 with :
@@ -106,13 +101,3 @@ jobs:
106101 GH_TOKEN : ${{ github.token }}
107102 run : |
108103 gh release create ${{ needs.check.outputs.VERSION }} --title "${{ needs.check.outputs.VERSION }}" --generate-notes --target ${{ github.sha }} ${{ (needs.check.outputs.RELEASE_CHANNEL != 'latest' && '--prerelease') || ''}}
109-
110- - name : Install MCP Publisher
111- run : |
112- curl -L "https://github.com/modelcontextprotocol/registry/releases/latest/download/mcp-publisher_$(uname -s | tr '[:upper:]' '[:lower:]')_$(uname -m | sed 's/x86_64/amd64/;s/aarch64/arm64/').tar.gz" | tar xz mcp-publisher
113-
114- - name : Login to MCP Registry
115- run : ./mcp-publisher login github --token ${{ steps.app-token.outputs.token }}
116-
117- - name : Publish to MCP Registry
118- run : ./mcp-publisher publish
Original file line number Diff line number Diff line change 1+ ---
2+ name : Publish to MCP Registry
3+ on :
4+ workflow_dispatch :
5+
6+ jobs :
7+ publish :
8+ runs-on : ubuntu-latest
9+ environment : Production
10+ permissions :
11+ contents : write
12+ id-token : write
13+ needs :
14+ - check
15+ if : needs.check.outputs.VERSION_EXISTS == 'false'
16+ steps :
17+ - uses : GitHubSecurityLab/actions-permissions/monitor@v1
18+ - uses : actions/checkout@v5
19+
20+ - name : Install MCP Publisher
21+ run : |
22+ curl -L "https://github.com/modelcontextprotocol/registry/releases/latest/download/mcp-publisher_$(uname -s | tr '[:upper:]' '[:lower:]')_$(uname -m | sed 's/x86_64/amd64/;s/aarch64/arm64/').tar.gz" | tar xz mcp-publisher
23+
24+ - name : Login to MCP Registry
25+ run : ./mcp-publisher login github-oidc
26+
27+ - name : Publish to MCP Registry
28+ run : ./mcp-publisher publish
You can’t perform that action at this time.
0 commit comments