We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c1c79a6 commit 7c339b1Copy full SHA for 7c339b1
rakelib/deploy.rake
@@ -2,16 +2,17 @@ require 'aws-sdk'
2
3
desc "Deploy a Rubinius release"
4
task :deploy do
5
+ s3 = Aws::S3::Resource.new(region: "us-west-2")
6
+
7
# Build and upload the release tarball to S3.
- if ENV["TRAVIS_OS_NAME"] == "linux" and ENV["CC"] == "clang"
8
+ if ENV["TRAVIS_OS_NAME"] == "linux" and ENV["CC"] == "clang" and ENV["RVM"] == "rbx-2"
9
# TODO: extract the name to a method
10
tarball = "rubinius-#{rbx_version}.tar.bz2"
11
12
puts "Deploying release tarball #{tarball}..."
13
14
Rake::Task['release'].invoke
15
- s3 = Aws::S3::Resource.new(region: "us-west-2")
16
obj = s3.bucket("rubinius-releases-rubinius-com").object(tarball)
17
obj.upload_file(tarball)
18
end
0 commit comments