Skip to content

Commit

Permalink
Implement CI release to Rubygems (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam Bauch authored Dec 27, 2019
1 parent 14ada5a commit ff7cd17
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .ruby-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.7.0
2.6.5
6 changes: 5 additions & 1 deletion .semaphore/rubygems.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
6 changes: 3 additions & 3 deletions .semaphore/semaphore.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 👩🏽‍🔬
Expand Down Expand Up @@ -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

0 comments on commit ff7cd17

Please sign in to comment.