From 6638303cf53a5b79343d73008c8f43a8caf0d429 Mon Sep 17 00:00:00 2001 From: gagik Date: Fri, 24 Oct 2025 12:49:19 +0200 Subject: [PATCH] chore: move registry publishing to the publish workflow --- .github/workflows/publish.yml | 11 +++++++++++ .github/workflows/registry-publish.yml | 25 ------------------------- 2 files changed, 11 insertions(+), 25 deletions(-) delete mode 100644 .github/workflows/registry-publish.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index fc17f0fed..92033588d 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -75,6 +75,7 @@ jobs: environment: Production permissions: contents: write + id-token: write needs: - check if: needs.check.outputs.VERSION_EXISTS == 'false' @@ -101,3 +102,13 @@ jobs: GH_TOKEN: ${{ github.token }} run: | gh release create ${{ needs.check.outputs.VERSION }} --title "${{ needs.check.outputs.VERSION }}" --generate-notes --target ${{ github.sha }} ${{ (needs.check.outputs.RELEASE_CHANNEL != 'latest' && '--prerelease') || ''}} + + - 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: Login to MCP Registry + run: ./mcp-publisher login github-oidc + + - name: Publish to MCP Registry + run: ./mcp-publisher publish diff --git a/.github/workflows/registry-publish.yml b/.github/workflows/registry-publish.yml deleted file mode 100644 index 50424f83e..000000000 --- a/.github/workflows/registry-publish.yml +++ /dev/null @@ -1,25 +0,0 @@ ---- -name: Publish to MCP Registry -on: - workflow_dispatch: - -jobs: - publish: - runs-on: ubuntu-latest - environment: Production - permissions: - contents: write - id-token: write - steps: - - uses: GitHubSecurityLab/actions-permissions/monitor@v1 - - 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: Login to MCP Registry - run: ./mcp-publisher login github-oidc - - - name: Publish to MCP Registry - run: ./mcp-publisher publish