This commit is contained in:
@@ -10,14 +10,11 @@ upload() {
|
||||
npx wrangler r2 object put "$bucket/$key" --file "$file" --content-type "$content_type" --remote
|
||||
}
|
||||
|
||||
upload index.html index.html text/html
|
||||
upload write.html write.html text/html
|
||||
upload detail.html detail.html text/html
|
||||
upload app.js app.js application/javascript
|
||||
upload index.html egbim/index.html text/html
|
||||
upload write.html egbim/write.html text/html
|
||||
upload detail.html egbim/detail.html text/html
|
||||
upload app.js egbim/app.js application/javascript
|
||||
upload egbim/index.html egbim/index.html text/html
|
||||
upload egbim/write.html egbim/write.html text/html
|
||||
upload egbim/detail.html egbim/detail.html text/html
|
||||
upload egbim/app.js egbim/app.js application/javascript
|
||||
upload egbim/config.js egbim/config.js application/javascript
|
||||
|
||||
while IFS= read -r file; do
|
||||
key="${file#./}"
|
||||
@@ -31,7 +28,6 @@ while IFS= read -r file; do
|
||||
*) content_type="application/octet-stream" ;;
|
||||
esac
|
||||
upload "$file" "$key" "$content_type"
|
||||
upload "$file" "egbim/$key" "$content_type"
|
||||
done < <(find ./assets -type f -not -name '*.map' -print | sort)
|
||||
|
||||
echo "Uploaded static files to R2 bucket: $bucket"
|
||||
|
||||
Reference in New Issue
Block a user