diff --git a/ci/scripts/deploy-static.sh b/ci/scripts/deploy-static.sh index ed05c1c..a9c35c4 100755 --- a/ci/scripts/deploy-static.sh +++ b/ci/scripts/deploy-static.sh @@ -31,23 +31,12 @@ fi export AWS_DEFAULT_REGION="$AWS_REGION" ENDPOINT_URL="$S3_ENDPOINT_URL" -# Upload index.html -echo "Uploading index.html..." -aws s3 cp "$DIST_DIR/index.html" "s3://$S3_BUCKET/index.html" \ +# Upload all static files +echo "Uploading static files..." +aws s3 cp "$DIST_DIR/" "s3://$S3_BUCKET/" \ + --recursive \ --endpoint-url="$ENDPOINT_URL" \ - --content-type "text/html; charset=utf-8" \ - --cache-control "max-age=300" \ - --metadata-directive REPLACE - -# Upload error.html -echo "Uploading error.html..." -aws s3 cp "$DIST_DIR/error.html" "s3://$S3_BUCKET/error.html" \ - --endpoint-url="$ENDPOINT_URL" \ - --content-type "text/html; charset=utf-8" \ --cache-control "max-age=300" \ --metadata-directive REPLACE echo "Static files deployed successfully!" -echo "Deployed files:" -echo " - index.html" -echo " - error.html" diff --git a/services/static/package.json b/services/static/package.json index 6ba19af..c95b67a 100644 --- a/services/static/package.json +++ b/services/static/package.json @@ -1,6 +1,6 @@ { "name": "@ermnvldmr/static", - "version": "1.0.0", + "version": "1.0.1", "description": "static.ermnvldmr.com landing pages", "type": "module", "scripts": {