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:
parent
04948eb211
commit
1d88b063ac
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue