Skip to content

Add GitHub Actions workflow for automated gem releases#81

Merged
cardmagic merged 1 commit intomasterfrom
feat/github-actions-release
Dec 27, 2025
Merged

Add GitHub Actions workflow for automated gem releases#81
cardmagic merged 1 commit intomasterfrom
feat/github-actions-release

Conversation

@cardmagic
Copy link
Owner

Summary

Adds .github/workflows/release.yml to automate gem publishing when version tags are pushed.

Workflow

  1. Triggered by pushing tags matching v* (e.g., v1.4.5)
  2. Runs full test suite
  3. Builds gem
  4. Pushes to RubyGems
  5. Creates GitHub Release with auto-generated release notes

Setup Required

Add RUBYGEMS_API_KEY to repository secrets:

  1. Go to Settings → Secrets and variables → Actions
  2. Add new secret RUBYGEMS_API_KEY with your RubyGems API key

Usage

# Update version in classifier.gemspec
# Commit changes
git tag v1.4.5
git push origin v1.4.5

Fixes #79

@cardmagic cardmagic force-pushed the feat/github-actions-release branch from 6ea06c0 to b8eda3b Compare December 27, 2025 10:07
Triggers on version tags (v*) to:
- Run full CI (reuses ruby.yml workflow)
- Build gem
- Push to RubyGems
- Create GitHub release with release notes

Release only proceeds if CI passes. Changes to ruby.yml
automatically apply to release checks.

Requires RUBYGEMS_API_KEY secret to be configured.

Fixes #79
@cardmagic cardmagic force-pushed the feat/github-actions-release branch from b8eda3b to 23ec8ad Compare December 27, 2025 10:08
@cardmagic cardmagic requested a review from Copilot December 27, 2025 10:09
@cardmagic cardmagic self-assigned this Dec 27, 2025
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds GitHub Actions automation for releasing gems to RubyGems when version tags are pushed, streamlining the release process by running tests, building the gem, and creating GitHub releases automatically.

Key Changes:

  • New release workflow triggered by version tags that runs CI tests before publishing
  • Automated gem building and publishing to RubyGems using API key authentication
  • Automatic GitHub Release creation with generated release notes

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
.github/workflows/ruby.yml Added workflow_call trigger to enable reuse by the release workflow
.github/workflows/release.yml New workflow that orchestrates CI validation, gem building, RubyGems publishing, and GitHub release creation

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@cardmagic cardmagic merged commit e336297 into master Dec 27, 2025
5 checks passed
@cardmagic cardmagic deleted the feat/github-actions-release branch December 27, 2025 10:09
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.

Implement automated gem publishing with GitHub Actions

1 participant