run workflows/release.yml in release environment
This commit is contained in:
parent
ad2240798a
commit
520205cad2
1 changed files with 5 additions and 2 deletions
7
.github/workflows/release.yml
vendored
7
.github/workflows/release.yml
vendored
|
|
@ -1,14 +1,17 @@
|
||||||
name: Release new version
|
name: Release new version
|
||||||
on:
|
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
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue