From b913827b7b56b5d2d9df96a0726a1558c8cd555f Mon Sep 17 00:00:00 2001 From: a14m Date: Wed, 9 Dec 2020 18:39:30 +0100 Subject: Fix publishing gem (not using rake release) Rake release requires creating tags and pushing them (and fails because it doesn't have git access)... instead use the build and gem push commands to avoid that while having gem push configured with GEM_HOST_API_KEY --- CLI/ruby/.gitlab-ci.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/CLI/ruby/.gitlab-ci.yml b/CLI/ruby/.gitlab-ci.yml index cc795d6..e4d943f 100644 --- a/CLI/ruby/.gitlab-ci.yml +++ b/CLI/ruby/.gitlab-ci.yml @@ -54,7 +54,10 @@ release: <<: *cache policy: pull script: - - bundle exec rake release + - bundle exec rake clean + - bundle exec rake clobber + - bundle exec rake build + - bundle exec gem push pkg/terminal_game_of_life-*.gem release: tag_name: $CI_COMMIT_TAG description: "Release: $CI_COMMIT_TAG" -- cgit v1.2.3