Skip to content

Commit e98b5f1

Browse files
Merge pull request #31 from modelcontextprotocol/add-release-workflow
add release workflow for publishing to RubyGems
2 parents 0b49c3f + 5db96f0 commit e98b5f1

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,7 @@ jobs:
1717
- uses: ruby/setup-ruby@v1
1818
with:
1919
ruby-version: ${{ matrix.entry.ruby }}
20-
bundler-cache: false
21-
- name: Bundle install
22-
run: bundle install
20+
bundler-cache: true
2321
- run: bundle exec rake test
2422
continue-on-error: ${{ matrix.entry.allowed-failure }}
2523

README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -489,4 +489,12 @@ otherwise 'resources/read' requests will be a no-op.
489489

490490
## Releases
491491

492-
TODO
492+
This gem is published to [RubyGems.org](https://rubygems.org/gems/mcp)
493+
494+
Releases are triggered by PRs to the `main` branch updating the version number in `lib/mcp/version.rb`.
495+
496+
1. **Update the version number** in `lib/mcp/version.rb`, following [semver](https://semver.org/)
497+
2. **Create A PR and get approval from a maintainer**
498+
3. **Merge your PR to the main branch** - This will automatically trigger the release workflow via GitHub Actions
499+
500+
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.

0 commit comments

Comments
 (0)