File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change 2
2
#
3
3
# Rakefile - This file is part of the RubyTree package.
4
4
#
5
- # Copyright (c) 2006-2022 Anupam Sengupta
5
+ # Copyright (c) 2006-2024 Anupam Sengupta
6
6
#
7
7
# All rights reserved.
8
8
#
@@ -160,9 +160,16 @@ namespace :gem do
160
160
pkg . need_tar = true
161
161
end
162
162
163
- desc 'Push the gem into the Rubygems repository '
163
+ desc 'Push the gem into the Rubygems and Github repositories '
164
164
task push : :gem do
165
+ github_repo = 'https://rubygems.pkg.github.com/evolve75'
166
+
167
+ # This pushes to the standard RubyGems registry
165
168
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 } "
166
173
end
167
174
end
168
175
You can’t perform that action at this time.
0 commit comments