Skip to content

Commit eab2cb6

Browse files
authored
output dl links (#414)
1 parent a6f2e0b commit eab2cb6

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

buildres/publish-from-staging.sh

+10-1
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,13 @@ if [ -z "$VERSION" ]; then
99
exit
1010
fi
1111

12-
aws s3 cp s3://waveterm-github-artifacts/staging/$VERSION/ s3://dl.waveterm.dev/releases/ --recursive --profile $AWS_PROFILE
12+
ORIGIN="waveterm-github-artifacts/staging/$VERSION/"
13+
DESTINATION="dl.waveterm.dev/releases/"
14+
15+
OUTPUT=$(aws s3 cp s3://$ORIGIN s3://$DESTINATION --recursive --profile $AWS_PROFILE)
16+
17+
for line in $OUTPUT; do
18+
PREFIX=${line%%${DESTINATION}*}
19+
SUFFIX=${line:${#PREFIX}}
20+
echo "https://$SUFFIX"
21+
done

0 commit comments

Comments
 (0)