Skip to content

Use Trusted Publishing for gem release - #21

Merged
r7kamura merged 2 commits into
mainfrom
trusted-publishing
Oct 31, 2026
Merged

r7kamura merged 2 commits into
mainfrom
trusted-publishing

Conversation

@r7kamura

Copy link
Copy Markdown
Owner

This gem had no release workflow, so releases were done by hand with a RubyGems API key.

This adds the same release flow as rubocop-erb:

  • release.yml calls the shared gem-release.yml reusable workflow in r7kamura/workflows, which creates the tag and GitHub Release and publishes the gem with Trusted Publishing (short-lived OIDC credentials instead of a long-lived API key) when the version in version.rb changes on main. It only runs in the r7kamura owner's repository so that forks do not try to publish.
  • bump-request.yml opens a pull request that changes the version, using r7kamura/bump-request.

A Trusted Publisher for this gem needs to be registered on RubyGems.org before the next release.

@r7kamura
r7kamura merged commit fde63b5 into main Oct 31, 2026
3 checks passed
@r7kamura
r7kamura deleted the trusted-publishing branch October 31, 2026 08:10
@github-actions github-actions Bot mentioned this pull request Oct 31, 2026
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