Skip to content

Commit f62ff59

Browse files
authored
chore: Write current version to CDN (#97)
1 parent a4b87ab commit f62ff59

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/scripts/deploy.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ aws s3api put-object --bucket $bucket --key "content/$version/LICENSE" --body LI
1212

1313
if [[ $version =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]
1414
then
15+
echo $version | aws s3 cp - s3://$bucket/content/current
16+
1517
minorUpdate=$(echo $version | sed -En "s/^([0-9]+\.)[0-9]+\.[0-9]+/\1x/p")
1618
aws s3api put-object --bucket $bucket --key "content/$minorUpdate/cwr.js" --body build/assets/cwr.js --cache-control max-age=7200
1719
aws s3api put-object --bucket $bucket --key "content/$minorUpdate/cwr.js.map" --body build/assets/cwr.js.map --cache-control max-age=7200

0 commit comments

Comments
 (0)