@@ -147,49 +147,3 @@ jobs:
147147 GITHUB_TOKEN : ${{ github.token }}
148148 run : |
149149 gh release upload ${{github.event.release.tag_name}} ./extension/playwright-mcp-extension-${{ steps.get-version.outputs.version }}.zip
150-
151- publish-release-mcp-registry :
152- if : github.event_name == 'workflow_dispatch'
153- runs-on : ubuntu-latest
154- environment : allow-mcp-registry-publishing
155- permissions :
156- contents : read
157- id-token : write # Needed for GitHub OIDC authentication
158- steps :
159- - uses : actions/checkout@v5
160- - name : Clone MCP Registry and build publisher tool
161- shell : pwsh
162- run : |
163- cd ${{ runner.temp }}
164-
165- # Install Microsoft Go
166- go run github.com/microsoft/go-infra/goinstallscript@v1.1.0
167- ./go-install.ps1 -GitHubActionsPath
168-
169- # Enable compliant crypto
170- $env:GOEXPERIMENT = "systemcrypto"
171-
172- # Clone and build the publisher tool
173- git clone --branch "v1.3.7" https://github.com/modelcontextprotocol/registry
174- cd registry
175- go build -o ${{ runner.temp }}/mcp-publisher ./cmd/publisher
176-
177- # show help for the tool to ensure it's working
178- ${{ runner.temp }}/mcp-publisher --help
179- - name : Azure Login via OIDC
180- uses : azure/login@v2
181- with :
182- client-id : ${{ secrets.AZURE_MCP_REGISTRY_CLIENT_ID }}
183- tenant-id : ${{ secrets.AZURE_MCP_REGISTRY_TENANT_ID }}
184- subscription-id : ${{ secrets.AZURE_MCP_REGISTRY_SUBSCRIPTION_ID }}
185- - name : Publish to the MCP Registry
186- shell : pwsh
187- run : |
188- # log in using Key Vault
189- ${{ runner.temp }}/mcp-publisher `
190- login dns azure-key-vault `
191- -vault "${{ secrets.KV_NAME }}" -key "${{ secrets.KV_KEY_NAME }}" `
192- -domain microsoft.com
193-
194- # publish the server.json
195- ${{ runner.temp }}/mcp-publisher publish ./.mcp/server.json
0 commit comments