Skip to content

Add autorelease workflow#25

Merged
tycooon merged 1 commit into
masterfrom
claude/compassionate-solomon-2446e6
Jun 29, 2026
Merged

Add autorelease workflow#25
tycooon merged 1 commit into
masterfrom
claude/compassionate-solomon-2446e6

Conversation

@tycooon

@tycooon tycooon commented Jun 29, 2026

Copy link
Copy Markdown
Member

Adds .github/workflows/release.yml to automate gem releases.

On every push to master the workflow:

  1. Extracts the version from lib/ci_helper/version.rb → tag vX.Y.Z.
  2. Skips the rest if a GitHub release for that tag already exists, so it only fires when the version is bumped (idempotent).
  3. Builds the gem from ci_helper.gemspec (Ruby 3.4).
  4. Pushes it to RubyGems using the GEM_HOST_API_KEY secret.
  5. Creates a GitHub release for the tag with the built .gem attached and auto-generated release notes.

Modeled on the helmsnap release workflow, minus the Docker image steps since this gem ships no Dockerfile.

Required setup

  • A GEM_HOST_API_KEY repository secret containing a RubyGems API token with push access to the ci-helper gem.

On push to master, extract the version from lib/ci_helper/version.rb and,
unless a release for that tag already exists, build the gem, push it to
RubyGems, and create a GitHub release with the gem attached.
@tycooon
tycooon merged commit 2c40ca7 into master Jun 29, 2026
5 checks passed
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