summaryrefslogtreecommitdiffstats
path: root/CLI/ruby
diff options
context:
space:
mode:
authora14m <[email protected]>2020-12-09 15:18:18 +0100
committera14m <[email protected]>2020-12-09 17:27:44 +0100
commit9b77fb4985410754517fe13e1a4038bc8e6b0ef5 (patch)
tree191d53451d9b2a66772e62165a437e2bc3c4b80a /CLI/ruby
parent0ad0dba11f15f16cf640e5d0ba6320e5d2fe41d0 (diff)
Configure rake release for the gem
Diffstat (limited to 'CLI/ruby')
-rw-r--r--CLI/ruby/.gitlab-ci.yml14
1 files changed, 14 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"