Closed nevans closed 2 months ago
@hsbt Have any other bundled gems configured trusted publishing yet? I've configured this to run when pushing a specific tag pattern, but perhaps it should be triggered by some other event? I want to be sure it doesn't conflict with any of your existing tools or processes.
@nevans Nice work. We didn't use release-gem
action under ruby org yet. If you have extra permission for this, let me know it.
I'm +1 to use this automation to other bundled gems 👍
@hsbt Great. I'll test it out on the next release.
@hsbt I added made a couple of minor changes to the workflow:
RubyGems
environmentLooking at other gems that have configured this (and came up in my code search), I saw three basic approaches to triggering:
I personally prefer the tag-based approach. When combined with the gh release create --draft
, it partially automates the creation of GitHub release. When combined with a GitHub environment, the environment can be configured to require deployment approval (which serves the same function as workflow_dispatch for me).
I made the following other changes, too:
v*
master
(which can be dismissed by repository admins)@hsbt @shugo @segiddins FYI: v0.4.11 was packaged by this. It all seemed to work correctly.
Great, thanks!
This requires additional configuration on the RubyGems website: