Merge pull request #31 from modelcontextprotocol/add-release-workflow
add release workflow for publishing to RubyGems
This commit is contained in:
commit
e98b5f12c1
2 changed files with 10 additions and 4 deletions
4
.github/workflows/ci.yml
vendored
4
.github/workflows/ci.yml
vendored
|
|
@ -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 }}
|
||||
|
||||
|
|
|
|||
10
README.md
10
README.md
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in a new issue