mirror of
https://github.com/kremalicious/blog.git
synced 2025-01-03 18:35:07 +01:00
deployment tweaks
This commit is contained in:
parent
f04f7acadf
commit
a93b1ed7fa
@ -1,6 +1,9 @@
|
||||
language: node_js
|
||||
node_js: node
|
||||
|
||||
git:
|
||||
depth: 10
|
||||
|
||||
cache:
|
||||
directories:
|
||||
- node_modules
|
||||
|
@ -13,27 +13,22 @@ set -e;
|
||||
|
||||
function s3sync {
|
||||
aws s3 sync ./public s3://"$1" \
|
||||
--exclude "*" \
|
||||
--include "*.js" \
|
||||
--include "*.css" \
|
||||
--include "static/*" \
|
||||
--include "icons/*" \
|
||||
--exclude "sw.js" \
|
||||
--exclude "workbox*/*" \
|
||||
--cache-control public,max-age=31536000,immutable \
|
||||
--delete \
|
||||
--acl public-read \
|
||||
--quiet
|
||||
--acl public-read
|
||||
|
||||
aws s3 sync ./public s3://"$1" \
|
||||
--exclude "*" \
|
||||
--include "*.html" \
|
||||
--include "*.xml" \
|
||||
--include "sw.js" \
|
||||
--include "chunk-map.json" \
|
||||
--include "sitemap.xml" \
|
||||
--include ".iconstats.json" \
|
||||
--include "humans.txt" \
|
||||
--include "robots.txt" \
|
||||
--cache-control public,max-age=0,must-revalidate \
|
||||
--delete \
|
||||
--acl public-read \
|
||||
--quiet
|
||||
--acl public-read
|
||||
}
|
||||
|
||||
##
|
||||
|
Loading…
Reference in New Issue
Block a user