Skip to content

Commit

Permalink
Add rake task to release gem on github and rubygems (#199)
Browse files Browse the repository at this point in the history
  • Loading branch information
ShockwaveNN authored May 18, 2020
1 parent 831cde9 commit 0970f9e
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
* Update `chromedriver` to `81.0.4044.69`
* New method `Webdriver.clean_up` for stopping hang-up browsers
* Support of `rubocop-performance`
* Add rake task to release gem on github and rubygems

### Fixes

Expand Down
14 changes: 14 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
# frozen_string_literal: true

require 'bundler/gem_tasks'
require 'rspec/core/rake_task'

RSpec::Core::RakeTask.new(:spec)

task default: :spec

desc 'Release gem'
task :release_github_rubygems do
Rake::Task['release'].invoke
sh('gem push --key github '\
'--host https://rubygems.pkg.github.com/onlyoffice-testing-robot '\
"pkg/#{OnlyofficeWebdriverWrapper::Name::STRING}-"\
"#{OnlyofficeWebdriverWrapper::Version::STRING}.gem")
end

0 comments on commit 0970f9e

Please sign in to comment.