Add GitHub Actions workflow for automated gem releases#81
Merged
Conversation
6ea06c0 to
b8eda3b
Compare
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
b8eda3b to
23ec8ad
Compare
There was a problem hiding this comment.
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds
.github/workflows/release.ymlto automate gem publishing when version tags are pushed.Workflow
v*(e.g.,v1.4.5)Setup Required
Add
RUBYGEMS_API_KEYto repository secrets:RUBYGEMS_API_KEYwith your RubyGems API keyUsage
Fixes #79