File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22#
33# Rakefile - This file is part of the RubyTree package.
44#
5- # Copyright (c) 2006-2022 Anupam Sengupta
5+ # Copyright (c) 2006-2024 Anupam Sengupta
66#
77# All rights reserved.
88#
@@ -160,9 +160,16 @@ namespace :gem do
160160 pkg . need_tar = true
161161 end
162162
163- desc 'Push the gem into the Rubygems repository '
163+ desc 'Push the gem into the Rubygems and Github repositories '
164164 task push : :gem do
165+ github_repo = 'https://rubygems.pkg.github.com/evolve75'
166+
167+ # This pushes to the standard RubyGems registry
165168 sh "gem push pkg/#{ GEM_NAME } "
169+
170+ # For github, the credentials key is assumed to be github
171+ # See: https://docs.github.com/en/packages/working-with-a-github-packages-registry/
172+ sh "gem push --key github --host #{ github_repo } pkg/#{ GEM_NAME } "
166173 end
167174end
168175
You can’t perform that action at this time.
0 commit comments