GHA: Test gen downloads page on Akamai
This commit is contained in:
@@ -30,7 +30,7 @@ rm -f ./${downloads_html}
|
||||
echo '<ul>' >> $downloads_html
|
||||
for file in $files
|
||||
do
|
||||
if [[ "$file" =~ ^"s3://spring-tools-io" ]]; then
|
||||
if [[ "$file" =~ ^"s3://tools-spring-io" ]]; then
|
||||
download_url=https://cdn.spring.io/spring-tools${file:20} #
|
||||
filename=${file:${#s3_url}+1}
|
||||
echo ' <li><a href="'${download_url}'">'${filename}'</li>' >> $downloads_html
|
||||
|
||||
2
.github/workflows/gen-nighly-downloads.yml
vendored
2
.github/workflows/gen-nighly-downloads.yml
vendored
@@ -28,7 +28,7 @@ jobs:
|
||||
for file in $files
|
||||
do
|
||||
echo "entry: ${file}"
|
||||
if [[ "$file" =~ ^"s3://spring-tools-io" ]]; then
|
||||
if [[ "$file" =~ ^"s3://tools-spring-io" ]]; then
|
||||
download_url=https://cdn.spring.io/spring-tools${file:20}
|
||||
filename=${file:${#s3_url}+1}
|
||||
echo ' <li><a href="'${download_url}'">'${filename}'</li>' >> $downloads_html
|
||||
|
||||
@@ -292,7 +292,7 @@ jobs:
|
||||
echo "Removing old dmg files from Akamai..."
|
||||
aws s3 rm s3://tools-spring-io/${dist_path} --recursive --exclude "*" --include "spring-tool-suite-4*macosx*.dmg*" --exclude "*/*"
|
||||
echo "Uploading new dmg files to Akamai..."
|
||||
aws s3 mv . s3://dist.springsource.com/${dist_path} --recursive --exclude "*" --include "spring-tool-suite-4*macosx*.dmg*" --exclude "*/*" --no-progress
|
||||
aws s3 mv . s3://tools-spring-io/${dist_path} --recursive --exclude "*" --include "spring-tool-suite-4*macosx*.dmg*" --exclude "*/*" --no-progress
|
||||
- name: Update Nightly Distro Downloads page
|
||||
if: ${{ inputs.build_type == 'snapshot' && always() }}
|
||||
run: |
|
||||
|
||||
Reference in New Issue
Block a user