mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-11-18 16:08:56 +00:00
ci: publish the hosted HyperFrames MCP to the official MCP registry (#7676)
This commit is contained in:
@@ -0,0 +1,50 @@
|
||||
name: Publish to MCP Registry
|
||||
|
||||
# Lists the hosted HyperFrames MCP (server.json) in the official MCP registry. The registry gives the
|
||||
# io.github.heygen-com/* name to a run that GitHub vouches for as this repo (OIDC), so no secret is stored.
|
||||
# The registry rejects a version it already has: to change the listing, edit server.json and raise "version".
|
||||
# Steps follow https://modelcontextprotocol.io/registry/github-actions
|
||||
|
||||
permissions: {}
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
paths: [server.json]
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
publish:
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 10
|
||||
permissions:
|
||||
id-token: write
|
||||
contents: read
|
||||
env:
|
||||
MCP_PUBLISHER_VERSION: v1.8.9
|
||||
steps:
|
||||
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
|
||||
|
||||
- name: Install cosign
|
||||
uses: sigstore/cosign-installer@6f9f17788090df1f26f669e9d70d6ae9567deba6 # v4.1.2
|
||||
|
||||
- name: Download and verify mcp-publisher
|
||||
run: |
|
||||
set -euo pipefail
|
||||
archive="mcp-publisher_linux_amd64.tar.gz"
|
||||
base_url="https://github.com/modelcontextprotocol/registry/releases/download/${MCP_PUBLISHER_VERSION}"
|
||||
curl --fail --location --silent --show-error --output "$archive" "$base_url/$archive"
|
||||
curl --fail --location --silent --show-error --output "$archive.sigstore.json" "$base_url/$archive.sigstore.json"
|
||||
cosign verify-blob \
|
||||
--bundle "$archive.sigstore.json" \
|
||||
--certificate-identity "https://github.com/modelcontextprotocol/registry/.github/workflows/release.yml@refs/tags/${MCP_PUBLISHER_VERSION}" \
|
||||
--certificate-oidc-issuer "https://token.actions.githubusercontent.com" \
|
||||
"$archive"
|
||||
tar xzf "$archive" mcp-publisher
|
||||
rm -f "$archive" "$archive.sigstore.json"
|
||||
|
||||
- name: Log in to the MCP registry
|
||||
run: ./mcp-publisher login github-oidc
|
||||
|
||||
- name: Publish server.json
|
||||
run: ./mcp-publisher publish
|
||||
Reference in New Issue
Block a user