mirror of
https://github.com/wavetermdev/waveterm.git
synced 2025-01-02 18:39:05 +01:00
output dl links (#414)
This commit is contained in:
parent
a6f2e0b26e
commit
eab2cb616d
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user