Skip to content

Commit e311288

Browse files
authored
chore: add a temporary OIDC-based registry publish workflow (#682)
1 parent 80cb5be commit e311288

File tree

2 files changed

+28
-15
lines changed

2 files changed

+28
-15
lines changed

.github/workflows/publish.yml

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -80,11 +80,6 @@ jobs:
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
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
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

0 commit comments

Comments
 (0)