Skip to content
Permalink
Browse files
Added check for building the release tarball.
  • Loading branch information
brixen committed Dec 5, 2015
1 parent c1c79a6 commit 7c339b1abf183e070cfb36ae07663b20214454b1
Showing with 3 additions and 2 deletions.
  1. +3 −2 rakelib/deploy.rake
@@ -2,16 +2,17 @@ require 'aws-sdk'

desc "Deploy a Rubinius release"
task :deploy do
s3 = Aws::S3::Resource.new(region: "us-west-2")

# Build and upload the release tarball to S3.
if ENV["TRAVIS_OS_NAME"] == "linux" and ENV["CC"] == "clang"
if ENV["TRAVIS_OS_NAME"] == "linux" and ENV["CC"] == "clang" and ENV["RVM"] == "rbx-2"
# TODO: extract the name to a method
tarball = "rubinius-#{rbx_version}.tar.bz2"

puts "Deploying release tarball #{tarball}..."

Rake::Task['release'].invoke

s3 = Aws::S3::Resource.new(region: "us-west-2")
obj = s3.bucket("rubinius-releases-rubinius-com").object(tarball)
obj.upload_file(tarball)
end

0 comments on commit 7c339b1

Please sign in to comment.