Skip to content

Add release workflow to publish CRuby gem via trusted publishing#240

Merged
yahonda merged 1 commit into
rsim:masterfrom
yahonda:add_release_workflow
Apr 12, 2026
Merged

Add release workflow to publish CRuby gem via trusted publishing#240
yahonda merged 1 commit into
rsim:masterfrom
yahonda:add_release_workflow

Conversation

@yahonda
Copy link
Copy Markdown
Collaborator

@yahonda yahonda commented Apr 12, 2026

Summary

Adds .github/workflows/release.yml triggered on v* 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-enhanced in rsim/oracle-enhanced@55575ef, minus the JRuby platform build (ruby-plsql only ships a single platform gem).

Jobs

  • build-crubyruby/setup-ruby@v1 with Ruby 4.0, runs gem build ruby-plsql.gemspec, uploads the .gem as an artifact.
  • release — depends on build-cruby, downloads the artifact, configures RubyGems credentials via rubygems/configure-rubygems-credentials@v1, and gem pushes. Runs in the rubygems environment with id-token: write for 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

  • Enable trusted publishing on rubygems.org for ruby-plsql
  • Push a v* tag and confirm the build-cruby + release jobs run green
  • Confirm the new gem version shows up on rubygems.org

🤖 Generated with Claude Code

@yahonda yahonda force-pushed the add_release_workflow branch 3 times, most recently from b47ccd6 to 02b5505 Compare April 12, 2026 11:11
@yahonda yahonda mentioned this pull request Apr 12, 2026
3 tasks
@yahonda yahonda requested a review from Copilot April 12, 2026 11:53
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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-cruby job to build the gem and upload it as an artifact
  • Introduces a release job 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.

Comment thread .github/workflows/release.yml
Comment thread .github/workflows/release.yml
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@yahonda yahonda force-pushed the add_release_workflow branch from 2455bf8 to be06717 Compare April 12, 2026 15:53
@yahonda yahonda merged commit c0f3a15 into rsim:master Apr 12, 2026
26 checks passed
@yahonda
Copy link
Copy Markdown
Collaborator Author

yahonda commented Apr 12, 2026

ruby-plsql 0.9.0 has been released successfully https://github.com/rsim/ruby-plsql/actions/runs/24319392558

@yahonda yahonda deleted the add_release_workflow branch April 29, 2026 23:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants