Merge pull request #31 from modelcontextprotocol/add-release-workflow

add release workflow for publishing to RubyGems
This commit is contained in:
Topher Bullock 2025-05-30 13:30:43 -04:00 • committed by GitHub
commit e98b5f12c1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 10 additions and 4 deletions

View file

@ -17,9 +17,7 @@ jobs:
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.entry.ruby }}
bundler-cache: false
- name: Bundle install
run: bundle install
bundler-cache: true
- run: bundle exec rake test
continue-on-error: ${{ matrix.entry.allowed-failure }}

View file

@ -489,4 +489,12 @@ otherwise 'resources/read' requests will be a no-op.
## Releases
TODO
This gem is published to [RubyGems.org](https://rubygems.org/gems/mcp)
Releases are triggered by PRs to the `main` branch updating the version number in `lib/mcp/version.rb`.
1. **Update the version number** in `lib/mcp/version.rb`, following [semver](https://semver.org/)
2. **Create A PR and get approval from a maintainer**
3. **Merge your PR to the main branch** - This will automatically trigger the release workflow via GitHub Actions
When changes are merged to the `main` branch, the GitHub Actions workflow (`.github/workflows/release.yml`) is triggered and the gem is published to RubyGems.