Sha256: 02f970385e66b83b6a823da86dbb1a382a51c6879faa5966f76fa765a073951f

Contents?: true

Size: 809 Bytes

Versions: 4

Compression:

Stored size: 809 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'])
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')
run "gem push pkg/s3_website_monadic-#{version}.gem"

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
s3_website_monadic-0.0.25 release
s3_website_monadic-0.0.24 release
s3_website_monadic-0.0.23 release
s3_website_monadic-0.0.22 release