-
Notifications
You must be signed in to change notification settings - Fork 0
1.b. RubyGems Release Setup
github-actions[bot] edited this page Jul 11, 2026
·
1 revision
.github/workflows/release.yml publishes wiki_promoter to
rubygems.org whenever a v* tag is pushed. It builds
the gem with rake build and runs gem push using a RUBYGEMS_API_KEY
secret written to ~/.gem/credentials.
- Create (or use an existing) rubygems.org account.
- Under Profile → API Keys, create a key scoped to "Push rubygem"
(optionally restricted to the
wiki_promotergem so a leaked key can't push other gems). - Add it as a GitHub Actions repo secret:
gh secret set RUBYGEMS_API_KEY --repo cpb/wiki_promoter, or via Settings → Secrets and variables → Actions in the GitHub UI.
- Bump the version in
lib/wiki_promoter/version.rb. - Update
CHANGELOG.md. - Commit the bump, then tag and push:
git tag v0.2.0 git push origin v0.2.0
- The
releaseworkflow builds and pushes the gem — no manualgem push.
RUBYGEMS_API_KEY is only consumed by the GitHub Actions workflow; nothing
in this repo reads it locally. WIKI_DEPLOY_TOKEN, by contrast, is needed
locally to dogfood wiki promotion (see
.env.sample
and the README's "Local secrets" section) — it's a classic PAT with repo
scope, since the default GITHUB_TOKEN can't push to a repository's wiki.