Merge pull request #77 from modelcontextprotocol/run-release-workflow-in-environment

run `workflows/release.yml` in release environment
This commit is contained in:
Topher Bullock 2025-07-15 10:27:40 -04:00 • committed by GitHub
commit 3d5451ad32
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -3,12 +3,15 @@ on:
push: push:
branches: [main] branches: [main]
paths: paths:
- 'lib/mcp/version.rb' - "lib/mcp/version.rb"
jobs: jobs:
publish_gem: publish_gem:
if: github.repository_owner == 'modelcontextprotocol' if: github.repository_owner == 'modelcontextprotocol'
name: Release Gem Version to RubyGems.org name: Release Gem Version to RubyGems.org
runs-on: ubuntu-latest runs-on: ubuntu-latest
environment: release
permissions: permissions:
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
contents: write # IMPORTANT: this permission is required for `rake release` to push the release tag contents: write # IMPORTANT: this permission is required for `rake release` to push the release tag