Add release workflow to publish CRuby gem via trusted publishing#240
Open
yahonda wants to merge 1 commit intorsim:masterfrom
Open
Add release workflow to publish CRuby gem via trusted publishing#240yahonda wants to merge 1 commit intorsim:masterfrom
yahonda wants to merge 1 commit intorsim:masterfrom
Conversation
827cc30 to
b47ccd6
Compare
Adds .github/workflows/release.yml triggered on v* tag pushes. Builds the gem on CRuby 4.0, then pushes it to RubyGems via OIDC trusted publishing (no API key secret). Trusted publishing must be enabled for this repo on RubyGems.org before the workflow can push gems. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
b47ccd6 to
02b5505
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds
.github/workflows/release.ymltriggered onv*tag pushes. The workflow builds the gem on CRuby 4.0 and pushes it to RubyGems.org via OIDC trusted publishing, so no long-lived API key secret has to live in the repository settings.Modeled on the equivalent workflow added to
rsim/oracle-enhancedin rsim/oracle-enhanced@55575ef, minus the JRuby platform build (ruby-plsql only ships a single platform gem).Jobs
ruby/setup-ruby@v1with Ruby 4.0, runsgem build ruby-plsql.gemspec, uploads the.gemas an artifact.build-cruby, downloads the artifact, configures RubyGems credentials viarubygems/configure-rubygems-credentials@v1, andgem pushes. Runs in therubygemsenvironment withid-token: writefor OIDC.Prerequisite
Trusted publishing must be enabled for this repository on RubyGems.org before the workflow can push gems (see https://guides.rubygems.org/trusted-publishing/).
Test plan
ruby-plsqlv*tag and confirm thebuild-cruby+releasejobs run green🤖 Generated with Claude Code