From 11cabea9003a0673637f1c7fa644e2e9cafbc4fd Mon Sep 17 00:00:00 2001 From: Ash Date: Thu, 10 Oct 2024 03:27:19 +0200 Subject: [PATCH] feat(build): exclude .webp files --- publish.sh | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/publish.sh b/publish.sh index 3c6a7d8..c529f29 100755 --- a/publish.sh +++ b/publish.sh @@ -4,10 +4,9 @@ set -ex cd "$(dirname "${0}")" -# TODO: exclude images and such formats since those are compressed as much -# as possible already -gzip -krv9 public -zstd -rv19 public -find public -type f -exec brotli -vZ {} + +find public -type f -not -name '*.webp' \ + -exec brotli -vZ {} + \ + -exec gzip -kv9 {} + \ + -exec zstd -v19 {} + rsync -av --delete -e ssh public/ www:/var/www/blog/ -- 2.45.2