From 249881423f81e705235d5811bcefd077ceb968f9 Mon Sep 17 00:00:00 2001 From: Ian Oxley Date: Fri, 28 Jun 2024 10:11:00 +0100 Subject: [PATCH 1/3] Require bundler/gem_tasks in Rakefile --- Rakefile | 1 + 1 file changed, 1 insertion(+) diff --git a/Rakefile b/Rakefile index ab03a96..2bfbeb2 100644 --- a/Rakefile +++ b/Rakefile @@ -1,4 +1,5 @@ require 'bundler' +require 'bundler/gem_tasks' Bundler.setup require 'appraisal' require 'rspec/core/rake_task' From bf811735dbb9b8272f43e97cd230c52ac814150e Mon Sep 17 00:00:00 2001 From: Ian Oxley Date: Fri, 28 Jun 2024 10:11:27 +0100 Subject: [PATCH 2/3] Add pkg directory to .gitignore --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index a648af5..018cfa1 100644 --- a/.gitignore +++ b/.gitignore @@ -9,3 +9,4 @@ gemfiles/*.gemfile.lock zuora.log Gemfile.lock coverage +pkg From 441b1927440342da62ece5b4986890b639a60b9f Mon Sep 17 00:00:00 2001 From: Ian Oxley Date: Fri, 28 Jun 2024 10:12:53 +0100 Subject: [PATCH 3/3] Use bundle exec rake build to build the gem Defaults to building the gem in the pkg directory. --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 37a8e59..20c6700 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -66,6 +66,6 @@ jobs: curl -u $JFROG_USER:$JFROG_PASS $RUBYGEMS_HOST/api/v1/api_key.yaml > $HOME/.gem/credentials chmod 600 $HOME/.gem/credentials - name: Build gem - run: bundle exec gem build zuora.gemspec + run: bundle exec rake build zuora.gemspec - name: Publish - run: bundle exec gem push $GEMS_PATH \ No newline at end of file + run: bundle exec gem push $GEMS_PATH