s3 publish script