2020-04-11 12:13:42 +00:00
|
|
|
#!/bin/sh
|
2020-04-11 13:17:31 +00:00
|
|
|
cd web
|
2020-04-11 12:13:42 +00:00
|
|
|
yarn clean && yarn release
|
2020-04-11 13:17:31 +00:00
|
|
|
cd ../
|
2020-04-12 14:43:34 +00:00
|
|
|
cleancss -o ./resources/static/style.css ./resources/static/css/style.css
|
2020-04-11 12:13:42 +00:00
|
|
|
aws s3 sync ./resources/static/ s3://logseq-site/static/
|
2020-04-12 04:36:25 +00:00
|
|
|
aws cloudfront create-invalidation \
|
|
|
|
--distribution-id $AWS_LOGSEQ_CLOUDFRONT_ID \
|
2020-05-25 12:47:34 +00:00
|
|
|
--paths "/static/js/main.js" "/static/js/mldoc.min.js" "/static/style.css" "/static/index.html" "/static/img/logo.png"
|