Set the ACL when uploading documentation

Apparently when you upload files using a different account (which can
access an S3 bucket based on the bucket policies) it uploads files as
private.
This commit is contained in:
Yorick Peterse 2015-05-21 15:47:29 +02:00
parent 04948eb211
commit 1d88b063ac
1 changed files with 2 additions and 2 deletions

View File

@ -11,7 +11,7 @@ namespace :doc do
directory = GEMSPEC.name
sh "aws s3 rm --recursive #{bucket}/#{directory}/latest"
sh "aws s3 sync yardoc #{bucket}/#{directory}/#{version}"
sh "aws s3 sync yardoc #{bucket}/#{directory}/latest"
sh "aws s3 sync yardoc #{bucket}/#{directory}/#{version} --acl public-read"
sh "aws s3 sync yardoc #{bucket}/#{directory}/latest --acl public-read"
end
end