Add release workflow to publish CRuby gem via trusted publishing#240
Merged
Conversation
b47ccd6 to
02b5505
Compare
3 tasks
There was a problem hiding this comment.
Pull request overview
Note
Copilot was unable to run its full agentic suite in this review.
Adds a GitHub Actions release workflow to build and publish the ruby-plsql gem to RubyGems.org on v* tag pushes using OIDC trusted publishing (no stored API key).
Changes:
- Introduces a
build-crubyjob to build the gem and upload it as an artifact - Introduces a
releasejob to download the artifact, configure RubyGems OIDC credentials, and push the gem
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2455bf8 to
be06717
Compare
Collaborator
Author
|
ruby-plsql 0.9.0 has been released successfully https://github.com/rsim/ruby-plsql/actions/runs/24319392558 |
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