From 1d88b063ac9fc171955737ebf3443a79379334ff Mon Sep 17 00:00:00 2001 From: Yorick Peterse Date: Thu, 21 May 2015 15:47:29 +0200 Subject: [PATCH] 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. --- task/doc.rake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/task/doc.rake b/task/doc.rake index 612617d..cb27573 100644 --- a/task/doc.rake +++ b/task/doc.rake @@ -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