Skip to content

Commit

Permalink
Add publish task to Rakefile
Browse files Browse the repository at this point in the history
  • Loading branch information
rortian committed Jul 2, 2024
1 parent 843f7c5 commit 414bf56
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,15 @@ Rake::TestTask.new(stress: :compile) do |t|
t.test_files = FileList['integration/stress_tests/*_test.rb']
t.verbose = true
end

desc 'Build the package and publish it to rubygems.pkg.github.com'
task publish: :build do
require 'cassandra'

# Requires local setup of personal access token, see:
# 1. https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-rubygems-registry#authenticating-with-a-personal-access-token
system("gem push --key github --host https://rubygems.pkg.github.com/art19 " \
"pkg/cassandra-driver-#{Cassandra::VERSION}.gem")
end


0 comments on commit 414bf56

Please sign in to comment.