Skip to content

Commit

Permalink
Add rake task to release gem (#39)
Browse files Browse the repository at this point in the history
  • Loading branch information
ShockwaveNN authored Sep 10, 2020
1 parent 72ed65d commit bd3b566
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
* Add all missing documentation
* Add tests for 100% coverage
* Add `dependabot` config
* Add `rake` task to release gem on
both `rubygems` and `GitHub Packages`

### Fixes

Expand Down
9 changes: 9 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,12 @@ 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-QA '\
"pkg/#{OnlyofficeS3Wrapper::NAME}-"\
"#{OnlyofficeS3Wrapper::VERSION}.gem")
end

0 comments on commit bd3b566

Please sign in to comment.