Repository navigation
Conversation
dblock
force-pushed
the
dblock/automate-gem-release
branch
5 times, most recently
from
November 11, 2026 19:11
69521ac to
28eb7b2
Compare
Preserve Grape's two contribution sections and stable/development README updates while delegating publication to the pinned reusable workflow. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
dblock
force-pushed
the
dblock/automate-gem-release
branch
from
November 11, 2026 19:26
28eb7b2 to
dc1808b
Compare
dblock
marked this pull request as ready for review
November 11, 2026 19:29
Member
Author
|
@ericproulx this automates Grape releases, would need some 1-time setup in GitHub and Rubygems for trusted publisher (copilot can do it for you), see above |
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
Use ruby-gem-release 0.6.0, pinning the development gem to
0.6.0and the reusable workflow tov0.6.0. The manually dispatched workflow supports an optional version override and RubyGems Trusted Publishing, owning validation, artifact preservation, publication, release commits/tags, GitHub Releases, and the next patch-version iteration.Use the library's Intridea changelog directly to preserve Grape's Features/Fixes headings and both contribution placeholders. Use
RubyGemRelease::Markdown::Sectiondirectly in the README lifecycle hooks, removing the local README updater and tests for behavior now owned by the library. Useproject.copy_filesandproject.configure_workflowto exercise the same workflow builder as production in separate Rake processes, replacing registry and hosted publication with local adapters. Keep the project-specific assertion of the complete README in both the release tag and development commit. Runtime dependencies remain unchanged.The fixture configuration helper removes another 9 test lines, reducing this PR's additions from 124 to 115. The release spec is now 27 lines, with no handwritten fixture Rakefile. The original PR added 350 lines.
Required Before the First Release
Configure the GitHub
releaseenvironment with maintainer approval and deployment restricted tomaster. Ensure branch/tag rules permit the release token to push the release and development commits and create version tags.Configure the existing
grapeRubyGems trusted publisher with repositoryruby-grape/grape, workflowrelease.yml, environmentrelease, and the separate workflow repositorydblock/ruby-gem-release. These settings are documented inRELEASING.md; this PR does not change repository protections or RubyGems configuration.Validation
bundle exec rake: RuboCop and 3,318 examples pass, including the complete release workflow with local publication adapters.actionlint .github/workflows/release.ymlandbundle exec rake buildpass.No workflow was dispatched, and nothing was published to RubyGems or GitHub.