We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a6f2e0b commit eab2cb6Copy full SHA for eab2cb6
buildres/publish-from-staging.sh
@@ -9,4 +9,13 @@ if [ -z "$VERSION" ]; then
9
exit
10
fi
11
12
-aws s3 cp s3://waveterm-github-artifacts/staging/$VERSION/ s3://dl.waveterm.dev/releases/ --recursive --profile $AWS_PROFILE
+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