Skip to content

Commit

Permalink
update css paths for cdn upload
Browse files Browse the repository at this point in the history
  • Loading branch information
bernardwolff committed Jan 6, 2025
1 parent 09e1655 commit 411d2bd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/cdn.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ ADMIN_CDN_EXISTS=$(aws s3 ls s3://assets.us.auth0.com/css/$EXTENSION_NAME/$CURRE
if [ ! -z "$CDN_EXISTS" ]; then
echo "There is already a version $CURRENT_VERSION in the cdn. Skipping cdn publish…"
else
aws s3 cp public/css/link.min.css s3://assets.us.auth0.com/extensions/$EXTENSION_NAME/$CURRENT_VERSION/link.min.css --region us-west-1 --quiet --cache-control "max-age=86400" --acl public-read
aws s3 cp dist/assets/link.$CURRENT_VERSION.min.css s3://assets.us.auth0.com/extensions/$EXTENSION_NAME/$CURRENT_VERSION/link.$CURRENT_VERSION.min.css --region us-west-1 --quiet --cache-control "max-age=86400" --acl public-read
echo "$CURRENT_VERSION uploaded to the cdn"
fi

if [ ! -z "$ADMIN_CDN_EXISTS" ]; then
echo "There is already a version $CURRENT_VERSION in the cdn. Skipping cdn publish…"
else
aws s3 cp public/css/admin.min.css s3://assets.us.auth0.com/extensions/$EXTENSION_NAME/$CURRENT_VERSION/admin.min.css --region us-west-1 --quiet --cache-control "max-age=86400" --acl public-read
aws s3 cp dist/assets/admin.$CURRENT_VERSION.min.css s3://assets.us.auth0.com/extensions/$EXTENSION_NAME/$CURRENT_VERSION/admin.$CURRENT_VERSION.min.css --region us-west-1 --quiet --cache-control "max-age=86400" --acl public-read
echo "$CURRENT_VERSION uploaded to the cdn"
fi

0 comments on commit 411d2bd

Please sign in to comment.