Skip to content

Add RubyGems publish workflow#140

Merged
hownowstephen merged 4 commits into
mainfrom
add-rubygems-publish-workflow
May 9, 2026
Merged

Add RubyGems publish workflow#140
hownowstephen merged 4 commits into
mainfrom
add-rubygems-publish-workflow

Conversation

@hownowstephen
Copy link
Copy Markdown
Contributor

@hownowstephen hownowstephen commented May 8, 2026

Summary

  • Add GitHub Actions workflow to publish gem to RubyGems on release creation
  • Uses OIDC trusted publishing (no API keys/secrets needed)
  • Mirrors the publish workflow pattern from customerio-python

Setup required

  1. rubygems.org: Add trusted publisher under gem settings — repo customerio/customerio-ruby, workflow publish.yml, environment rubygems
  2. GitHub: Create rubygems environment in repo Settings → Environments

Test plan

  • Verify workflow YAML is valid
  • Configure trusted publisher on rubygems.org
  • Create GitHub rubygems environment
  • Test with a release publish

Note

Medium Risk
Introduces an automated release pipeline that can publish the gem to RubyGems using OIDC and write repo contents, so misconfiguration could publish unintended versions or affect release integrity.

Overview
Adds a new GitHub Actions workflow (.github/workflows/publish.yml) that runs on v* tag pushes to build and publish the gem to RubyGems via rubygems/release-gem@v1 using OIDC (id-token: write).

The workflow includes a guard step that fails the run if the pushed tag version does not match Customerio::VERSION before publishing.

Reviewed by Cursor Bugbot for commit 71d6908. Bugbot is set up for automated code reviews on this repo. Configure here.

@joeybaer
Copy link
Copy Markdown

joeybaer commented May 8, 2026

@cursor review

Copy link
Copy Markdown

@cursor cursor Bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 2 potential issues.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 489c539. Configure here.

Comment thread .github/workflows/publish.yml Outdated
Comment thread .github/workflows/publish.yml Outdated
@hownowstephen hownowstephen merged commit 101defe into main May 9, 2026
9 checks passed
@hownowstephen hownowstephen deleted the add-rubygems-publish-workflow branch May 9, 2026 02:32
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