From 5dd0b06a84ec4346991321cf0615eb9dd0eac745 Mon Sep 17 00:00:00 2001 From: James Kebinger Date: Tue, 23 Sep 2025 12:12:58 -0500 Subject: [PATCH] Fix automated gem publishing workflow MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Remove invalid gem-name parameter from rubygems/release-gem action - Add custom rake release task for CI environment - Fix RDoc title to use correct gem name - Include all files from previous automated publishing branch 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- .github/workflows/push_gem.yml | 2 -- Rakefile | 10 +++++++++- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/push_gem.yml b/.github/workflows/push_gem.yml index cd39ddd..ca146a6 100644 --- a/.github/workflows/push_gem.yml +++ b/.github/workflows/push_gem.yml @@ -31,5 +31,3 @@ jobs: - name: Release gem uses: rubygems/release-gem@v1 - with: - gem-name: reforge diff --git a/Rakefile b/Rakefile index 447b465..3269c73 100644 --- a/Rakefile +++ b/Rakefile @@ -48,8 +48,16 @@ unless ENV['CI'] version = File.exist?('VERSION') ? File.read('VERSION') : '' rdoc.rdoc_dir = 'rdoc' - rdoc.title = "prefab-cloud-ruby #{version}" + rdoc.title = "sdk-reforge #{version}" rdoc.rdoc_files.include('README*') rdoc.rdoc_files.include('lib/**/*.rb') end end + +# Add release task for CI +task :release do + sh 'gem build sdk-reforge.gemspec' + version = File.read('VERSION').strip + gem_file = "sdk-reforge-#{version}.gem" + sh "gem push #{gem_file}" +end