From 9b77fb4985410754517fe13e1a4038bc8e6b0ef5 Mon Sep 17 00:00:00 2001 From: a14m Date: Wed, 9 Dec 2020 15:18:18 +0100 Subject: Configure rake release for the gem --- CLI/ruby/.gitlab-ci.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'CLI/ruby') diff --git a/CLI/ruby/.gitlab-ci.yml b/CLI/ruby/.gitlab-ci.yml index f96599c..cc795d6 100644 --- a/CLI/ruby/.gitlab-ci.yml +++ b/CLI/ruby/.gitlab-ci.yml @@ -44,3 +44,17 @@ lint: policy: pull script: - bundle exec rubocop + +release: + stage: release + needs: [test, lint] + rules: + - if: $CI_COMMIT_TAG =~ /^ruby\/v.*$/ + cache: + <<: *cache + policy: pull + script: + - bundle exec rake release + release: + tag_name: $CI_COMMIT_TAG + description: "Release: $CI_COMMIT_TAG" -- cgit v1.2.3 From fbf4247ee72fe635cac87c3d44ca593671196cf3 Mon Sep 17 00:00:00 2001 From: a14m Date: Wed, 9 Dec 2020 17:28:35 +0100 Subject: Add the section about gem release to rubygems --- CLI/ruby/README.md | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'CLI/ruby') diff --git a/CLI/ruby/README.md b/CLI/ruby/README.md index 5207529..a44511a 100644 --- a/CLI/ruby/README.md +++ b/CLI/ruby/README.md @@ -51,6 +51,14 @@ Run `bundle exec rspec` or `bundle exec rake spec` ## Documentation Run `bundle exec yard` +## Release +- Update the [version](./lib/game_of_live/version.rb) number +- Update the [CHANGELOG](./CHANGELOG.md) +- Create a git(lab) tag `ruby/v#{version_number}` ex: `ruby/v0.1.1-pre` + +The tag will automatically trigger the release workflow after successful build/test +and release the changes to [rubygems.org](https://rubygems.org/gems/terminal_game_of_life) + ## Extra information ### [Contributing](../../CONTRIBUTING.md) ### [License](../../LICENSE.md) -- cgit v1.2.3