diff options
| author | Ruben Beltran del Rio <ruben@unlimited.pizza> | 2021-10-16 15:12:32 +0200 |
|---|---|---|
| committer | Ruben Beltran del Rio <ruben@unlimited.pizza> | 2021-10-16 15:12:32 +0200 |
| commit | f7f0ed4c2a195ee3b7fc0e8acb0283c817a0f927 (patch) | |
| tree | 4bca74146865e9534e1fec95feccfa2980c84660 /scripts | |
| parent | d0753b3a9711f554331d72f90618605f7c714d55 (diff) | |
Add the CI deployment files
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/mime.types | 11 | ||||
| -rw-r--r-- | scripts/upload.sh | 6 |
2 files changed, 17 insertions, 0 deletions
diff --git a/scripts/mime.types b/scripts/mime.types new file mode 100644 index 0000000..19eb627 --- /dev/null +++ b/scripts/mime.types @@ -0,0 +1,11 @@ +application/javascript js mjs cjs +application/json json +application/manifest+json webmanifest +application/zip zip +image/gif gif +image/jpeg jpg jpeg +image/png png +image/vnd.microsoft.icon ico +text/css css +text/html html htm +text/plain txt diff --git a/scripts/upload.sh b/scripts/upload.sh new file mode 100644 index 0000000..03b1a9d --- /dev/null +++ b/scripts/upload.sh @@ -0,0 +1,6 @@ +#!/usr/bin/env sh + +: "${S3_BUCKET:=prompt.limited.pizza}" + +echo "Uploading to $S3_BUCKET" +aws s3 sync --acl public-read --delete build s3://$S3_BUCKET |