Publishing is only ever done by GitHub Actions (.github/workflows/release.yml), triggered by
a vX.Y.Z tag whose commit is reachable from develop. Tags on any other branch are rejected by
the workflow before anything is built. No one needs local publishing credentials — the workflow
authenticates to RubyGems.org via OIDC trusted publishing and to GitHub Packages via the
Actions-provided GITHUB_TOKEN.
-
Bump
Happi::VERSIONinlib/happi/version.rb. -
Move the entries under
## [Unreleased]inCHANGELOG.mdto a new## [X.Y.Z] - YYYY-MM-DDheading. -
Commit both changes and get them onto
develop(PR + merge, as normal). -
From an up-to-date
develop, tag the commit and push the tag:git tag vX.Y.Z git push origin vX.Y.Z
-
Watch the "Release" workflow run in the Actions tab.
-
Confirm the new version shows up on rubygems.org and on GitHub Packages.
- RubyGems.org: an existing owner of the
happigem must add a Trusted Publisher forrdytech/happi, workflowrelease.yml(no environment). See Trusted Publishing: adding a publisher. Until this is done, the "Publish to RubyGems.org" step will fail. - GitHub Packages: nothing to configure — the workflow's
packages: writepermission is sufficient.