-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chore: update preVersion in webtask.json * upload bundle in deploy step * update webtask deploy tool url * temporarily run build workflow on dev branch * fix small typo * remove existence check to test uploading * re-add existence check
- Loading branch information
1 parent
9029d89
commit 76375e6
Showing
4 changed files
with
17 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,27 @@ | ||
CURRENT_VERSION=$(node tools/attribute.js version) | ||
EXTENSION_NAME="auth0-account-link" | ||
|
||
BUNDLE_EXISTS=$(aws s3 ls s3://assets.us.auth0.com/extensions/$EXTENSION_NAME/ | grep "$EXTENSION_NAME-$CURRENT_VERSION.js") | ||
CDN_EXISTS=$(aws s3 ls s3://assets.us.auth0.com/extensions/$EXTENSION_NAME/assets/ | grep "link.$CURRENT_VERSION.min.css") | ||
ADMIN_CDN_EXISTS=$(aws s3 ls s3://assets.us.auth0.com/extensions/$EXTENSION_NAME/assets/ | grep "admin.$CURRENT_VERSION.min.css") | ||
|
||
if [ ! -z "$BUNDLE_EXISTS" ]; then | ||
echo "There is already a $EXTENSION_NAME-$CURRENT_VERSION.js in the cdn. Skipping cdn publish…" | ||
else | ||
aws s3 cp build/bundle.js s3://assets.us.auth0.com/extensions/$EXTENSION_NAME/$EXTENSION_NAME-$CURRENT_VERSION.js --region us-west-1 --acl public-read | ||
echo "$EXTENSION_NAME-$CURRENT_VERSION.js uploaded to the cdn" | ||
fi | ||
|
||
if [ ! -z "$CDN_EXISTS" ]; then | ||
echo "There is already a version $CURRENT_VERSION in the cdn. Skipping cdn publish…" | ||
echo "There is already a link.$CURRENT_VERSION.min.css in the cdn. Skipping cdn publish…" | ||
else | ||
aws s3 cp dist/assets/link.$CURRENT_VERSION.min.css s3://assets.us.auth0.com/extensions/$EXTENSION_NAME/assets/link.$CURRENT_VERSION.min.css --region us-west-1 --cache-control "max-age=86400" --acl public-read | ||
echo "$CURRENT_VERSION uploaded to the cdn" | ||
echo "link.$CURRENT_VERSION.min.css 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…" | ||
echo "There is already a admin.$CURRENT_VERSION.min.css in the cdn. Skipping cdn publish…" | ||
else | ||
aws s3 cp dist/assets/admin.$CURRENT_VERSION.min.css s3://assets.us.auth0.com/extensions/$EXTENSION_NAME/assets/admin.$CURRENT_VERSION.min.css --region us-west-1 --cache-control "max-age=86400" --acl public-read | ||
echo "$CURRENT_VERSION uploaded to the cdn" | ||
echo "admin.$CURRENT_VERSION.min.css uploaded to the cdn" | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters