Skip to content

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

Open
yahonda wants to merge 1 commit intorsim:masterfrom
yahonda:add_release_workflow
Open

Add release workflow to publish CRuby gem via trusted publishing#240
yahonda wants to merge 1 commit intorsim: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 2 times, most recently from 827cc30 to b47ccd6 Compare April 12, 2026 11:09
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>
@yahonda yahonda force-pushed the add_release_workflow branch from b47ccd6 to 02b5505 Compare April 12, 2026 11:11
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.

1 participant