diff --git a/scripts/publish-deb b/scripts/publish-deb index 53cd78fa..a7596010 100755 --- a/scripts/publish-deb +++ b/scripts/publish-deb @@ -180,7 +180,7 @@ if [ "${sign_all}" ]; then sign_deb ${tmp_repo_path} ${debSuite} ${file} echo "Syncing ${package}.asc to ${s3_bucket_repo}..." - aws s3 sync ${tmp_repo_path}/${debSuite}/${package}.asc ${s3_bucket_repo}/${debSuite}/${package}.asc --delete --acl public-read + aws s3 cp ${tmp_repo_path}/${debSuite}/${package}.asc ${s3_bucket_repo}/${debSuite}/${package}.asc --acl public-read aws cloudfront create-invalidation --distribution-id ${AWS_CLOUDFRONT_DIST_ID} --paths ${cloudfront_path}/${debSuite}/${package}.asc fi fi diff --git a/scripts/publish-rpm b/scripts/publish-rpm index eacd85ae..8d4c0b7b 100755 --- a/scripts/publish-rpm +++ b/scripts/publish-rpm @@ -107,7 +107,7 @@ if [ "${sign_all}" ]; then sign_rpm ${tmp_repo_path} ${file} echo "Syncing ${package}.asc to ${s3_bucket_repo}..." - aws s3 sync ${tmp_repo_path}/${package}.asc ${s3_bucket_repo}/${package}.asc --delete --acl public-read + aws s3 cp ${tmp_repo_path}/${package}.asc ${s3_bucket_repo}/${package}.asc --acl public-read aws cloudfront create-invalidation --distribution-id ${AWS_CLOUDFRONT_DIST_ID} --paths ${cloudfront_path}/${package}.asc fi fi