Sha256: 31cef73d81b530f8ee4f7ba5a138aa7ab1f8bcd0b379050c4ad9a095c2acedd4

Contents?: true

Size: 944 Bytes

Versions: 7

Compression:

Stored size: 944 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 "git push"

run "rake build"

client = Octokit::Client.new(:login => 'laurilehmijoki', :password => ENV['S3_WEBSITE_RELEASE_KEY'])
release = client.create_release(
  'laurilehmijoki/s3_website', 
  tag_name,
  :body => "See https://github.com/laurilehmijoki/s3_website/blob/master/changelog.md##{version.gsub('.', '')}"
)
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

7 entries across 7 versions & 1 rubygems

Version Path
s3_website_monadic-0.0.32 release
s3_website_monadic-0.0.31 release
s3_website_monadic-0.0.30 release
s3_website_monadic-0.0.29 release
s3_website_monadic-0.0.28 release
s3_website_monadic-0.0.27 release
s3_website_monadic-0.0.26 release