added about.html
This commit is contained in:
parent
1d5b7bd374
commit
3534f84b27
3 changed files with 77 additions and 4 deletions
|
|
@ -65,6 +65,7 @@ TMPDIR=$(mktemp -d)
|
|||
cp "$FRONTEND_DIR/index.html" "$TMPDIR/index.html"
|
||||
cp "$FRONTEND_DIR/site.js" "$TMPDIR/site.js"
|
||||
cp "$FRONTEND_DIR/bot.html" "$TMPDIR/bot.html"
|
||||
cp "$FRONTEND_DIR/about.html" "$TMPDIR/about.html"
|
||||
|
||||
sed -i "s/const TOTAL_BUNDLES = [0-9]*/const TOTAL_BUNDLES = ${TOTAL_BUNDLES}/" "$TMPDIR/index.html"
|
||||
echo "Injected TOTAL_BUNDLES = $TOTAL_BUNDLES"
|
||||
|
|
@ -74,7 +75,8 @@ echo "Uploading to s3://$SITE_BUCKET/..."
|
|||
aws s3 cp "$TMPDIR/index.html" "s3://$SITE_BUCKET/" --content-type "text/html"
|
||||
aws s3 cp "$TMPDIR/site.js" "s3://$SITE_BUCKET/" --content-type "application/javascript"
|
||||
aws s3 cp "$TMPDIR/bot.html" "s3://$SITE_BUCKET/" --content-type "text/html"
|
||||
echo "Uploaded 3 files"
|
||||
aws s3 cp "$TMPDIR/about.html" "s3://$SITE_BUCKET/" --content-type "text/html"
|
||||
echo "Uploaded 4 files"
|
||||
|
||||
rm -rf "$TMPDIR"
|
||||
|
||||
|
|
@ -86,7 +88,7 @@ if ! $SKIP_INVALIDATION; then
|
|||
|
||||
if [ -n "$DIST_ID" ]; then
|
||||
echo "Invalidating CloudFront $DIST_ID..."
|
||||
aws cloudfront create-invalidation --distribution-id "$DIST_ID" --paths "/index.html" "/site.js" "/bot.html" > /dev/null
|
||||
aws cloudfront create-invalidation --distribution-id "$DIST_ID" --paths "/index.html" "/site.js" "/bot.html" "/about.html" > /dev/null
|
||||
echo "Invalidation submitted"
|
||||
else
|
||||
echo "Warning: no CloudFront distribution found, skipping invalidation"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue