mirror of
https://github.com/referodesign/refero_skill.git
synced 2026-09-18 11:38:52 +08:00
Publish MCP Registry via GitHub OIDC
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
name: Publish to MCP Registry
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
publish:
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: read
|
||||
id-token: write
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v5
|
||||
|
||||
- name: Install MCP publisher
|
||||
run: |
|
||||
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
|
||||
|
||||
- name: Validate registry manifest
|
||||
run: ./mcp-publisher validate
|
||||
|
||||
- name: Authenticate with GitHub OIDC
|
||||
run: ./mcp-publisher login github-oidc
|
||||
|
||||
- name: Publish server
|
||||
run: ./mcp-publisher publish
|
||||
Reference in New Issue
Block a user