diff --git a/.github/scripts/update-distro-download-page.sh b/.github/scripts/update-distro-download-page.sh index 67da50d19..a7edadd71 100755 --- a/.github/scripts/update-distro-download-page.sh +++ b/.github/scripts/update-distro-download-page.sh @@ -2,6 +2,7 @@ dist_path=$1 eclipse_version=$2 build_type=$3 +# Legacy S3 tool-spring-io dist.springsource.com s3_url=s3://dist.springsource.com/${dist_path} downloads_html="sts4-nightly-${eclipse_version}.html" files=`aws s3 cp ${s3_url} . --recursive --exclude "*" --include "spring-tool-suite-4*.zip" --include "spring-tool-suite-4*.dmg" --include "spring-tool-suite-4*.self-extracting.jar" --include "spring-tool-suite-4*.tar.gz" --exclude "*/*" --dryrun` @@ -17,5 +18,22 @@ do done echo '' >> $downloads_html cat ./$downloads_html -aws s3 cp ./$downloads_html s3://dist.springsource.com/${build_type}/STS4/ --acl public-read --no-progress +aws s3 mv ./$downloads_html s3://dist.springsource.com/${build_type}/STS4/ --acl public-read --no-progress + +# Akamai tools-spring-io bucket +s3_url=s3://spring-tools-io/${dist_path} +downloads_html="sts4-nightly-${eclipse_version}.html" +files=`aws s3 cp ${s3_url} . --recursive --exclude "*" --include "spring-tool-suite-4*.zip" --include "spring-tool-suite-4*.dmg" --include "spring-tool-suite-4*.self-extracting.jar" --include "spring-tool-suite-4*.tar.gz" --exclude "*/*" --dryrun` +rm -f ./${downloads_html} +echo '