Add OIDC-based release workflow on tag push#22
Merged
Conversation
oskgu360
commented
Apr 30, 2026
f0817b5 to
5fb9219
Compare
Releases now run from CI via OIDC, so the local rake release/build/install tasks are no longer needed. Build locally with 'gem build sparoid.gemspec' if needed.
5fb9219 to
2afeeae
Compare
There was a problem hiding this comment.
Pull request overview
Adds a GitHub Actions tag-triggered release workflow intended to publish the gem to RubyGems via OIDC trusted publishing, reducing reliance on local rake release and long-lived secrets.
Changes:
- Add
.github/workflows/release.ymlto publish onv*tag pushes usingrubygems/release-gem@v1with OIDC. - Remove
bundler/gem_tasksfromRakefile(dropping Bundler-provided gem tasks likerake install/rake release). - Update the CI workflow to use a newer
actions/checkoutmajor version.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| Rakefile | Removes Bundler gem tasks from the Rake task set. |
| .github/workflows/release.yml | Introduces OIDC-based release workflow triggered by version tags. |
| .github/workflows/main.yml | Updates checkout action used in CI. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
- Indent steps in main.yml under 'steps:' (cosmetic) - Restore bundler/gem_tasks for 'rake install'; release path is now CI-only via the new tag-push workflow - README: keep 'rake install' as the local install command
walro
approved these changes
Apr 30, 2026
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
.github/workflows/release.ymltriggered onv*tag pushesrubygems/release-gem@v1which performs OIDC token exchange with rubygems.org, builds the gem, and pushes it — no API key in repo secretsrake releaseflow once the rubygems.org trusted-publisher config is in placeManual setup required before this works
sparoidgem → Trusted publishers → Add GitHub Actions publisher with:84codessparoid.rbrelease.ymlTest plan
v2.1.2tag and confirm the workflow publishes to rubygems.org