summaryrefslogtreecommitdiffstats
path: root/CLI/ruby
diff options
context:
space:
mode:
Diffstat (limited to 'CLI/ruby')
-rw-r--r--CLI/ruby/.gitlab-ci.yml14
-rw-r--r--CLI/ruby/README.md8
2 files changed, 22 insertions, 0 deletions
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"
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)