From ff7cd178dfc7826a83dacdf157365c48ad0aec0a Mon Sep 17 00:00:00 2001 From: Sam Bauch Date: Fri, 27 Dec 2019 11:50:42 -0500 Subject: [PATCH] Implement CI release to Rubygems (#12) --- .ruby-version | 2 +- .semaphore/rubygems.yml | 6 +++++- .semaphore/semaphore.yml | 6 +++--- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/.ruby-version b/.ruby-version index 24ba9a38..57cf282e 100644 --- a/.ruby-version +++ b/.ruby-version @@ -1 +1 @@ -2.7.0 +2.6.5 diff --git a/.semaphore/rubygems.yml b/.semaphore/rubygems.yml index 9020681c..67485edf 100644 --- a/.semaphore/rubygems.yml +++ b/.semaphore/rubygems.yml @@ -14,7 +14,11 @@ blocks: jobs: - name: Publish to Rubygems commands: - - checkout --use-cache + - checkout + - sem-version ruby 2.6.5 + - gem update --system - gem install bundler + - bundle install + - chmod 0600 /home/semaphore/.gem/credentials - bundle exec gem build workos --output=release.gem - bundle exec gem push release.gem \ No newline at end of file diff --git a/.semaphore/semaphore.yml b/.semaphore/semaphore.yml index 755ba578..484cdfc0 100644 --- a/.semaphore/semaphore.yml +++ b/.semaphore/semaphore.yml @@ -11,7 +11,7 @@ blocks: - name: srb tc commands: - checkout - - sem-version ruby 2.3.4 + - sem-version ruby 2.6.5 - gem install bundler - bundle install - bundle exec srb tc @@ -21,7 +21,7 @@ blocks: - name: rubocop commands: - checkout - - sem-version ruby 2.3.4 + - sem-version ruby 2.6.5 - bundle install - bundle exec rubocop - name: Run Tests 👩🏽‍🔬 @@ -58,7 +58,7 @@ blocks: - checkout - sem-version ruby 2.6.5 - bundle install - - bundle exec rspec + - bundle exec rspec promotions: - name: Deploy workos-rb to rubygems pipeline_file: rubygems.yml