Skip to content

Commit

Permalink
output dl links (#414)
Browse files Browse the repository at this point in the history
  • Loading branch information
esimkowitz authored Mar 8, 2024
1 parent a6f2e0b commit eab2cb6
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion buildres/publish-from-staging.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,13 @@ if [ -z "$VERSION" ]; then
exit
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

0 comments on commit eab2cb6

Please sign in to comment.