output dl links (#414)

This commit is contained in:
Evan Simkowitz 2024-03-08 15:16:55 -08:00 committed by GitHub
parent a6f2e0b26e
commit eab2cb616d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -9,4 +9,13 @@ if [ -z "$VERSION" ]; then
exit exit
fi fi
aws s3 cp s3://waveterm-github-artifacts/staging/$VERSION/ s3://dl.waveterm.dev/releases/ --recursive --profile $AWS_PROFILE ORIGIN="waveterm-github-artifacts/staging/$VERSION/"
DESTINATION="dl.waveterm.dev/releases/"
OUTPUT=$(aws s3 cp s3://$ORIGIN s3://$DESTINATION --recursive --profile $AWS_PROFILE)
for line in $OUTPUT; do
PREFIX=${line%%${DESTINATION}*}
SUFFIX=${line:${#PREFIX}}
echo "https://$SUFFIX"
done