Sha256: c6fbef7fe9ef8f1445f0d7be6f7b479fb412da49aef23e9cbd9cf4258e3d2e42
Contents?: true
Size: 881 Bytes
Versions: 2
Compression:
Stored size: 881 Bytes
Contents
#!/usr/bin/env ruby require 'octokit' require_relative 'lib/s3_website/version' version = S3Website::VERSION unless ENV['S3_WEBSITE_RELEASE_KEY'] puts "Set the S3_WEBSITE_RELEASE_KEY environmental variable. It should be your personal GitHub access token." end def run(cmd) unless system(cmd) exit 1 end end puts "Building s3_website.jar..." run "./sbt assembly" tag_name = "v#{version}" run "git tag #{tag_name} && git push origin #{tag_name}" run "rake build" client = Octokit::Client.new(:login => 'laurilehmijoki', :password => ENV['S3_WEBSITE_RELEASE_KEY']) puts "Creating the release..." release = client.create_release('laurilehmijoki/s3_website', tag_name) puts "Uploading s3_website.jar..." client.upload_asset(release[:url], 'target/scala-2.11/s3_website.jar') puts "Pushing the gem into RubyGems.org" run "gem push pkg/s3_website_monadic-#{version}.gem"
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
s3_website_monadic-0.0.21 | release |
s3_website_monadic-0.0.20 | release |