generate statically compressed files

This commit is contained in:
wires 2025-04-02 13:01:00 -04:00
parent 5a76665519
commit 2cfc023f4a
Signed by: wires
SSH key fingerprint: SHA256:9GtP+M3O2IivPDlw1UY872UPUuJH2gI0yG6ExBxaaiM
2 changed files with 11 additions and 1 deletions

7
\ Normal file
View file

@ -0,0 +1,7 @@
#!/bin/sh
rm -rf ./public
hugo --minify || exit $?
gzip -rk public || exit $?
fd . public -tf -E '*.gz' -x brotli -k {} || exit $?
rsync -rvz --delete ./public/ wires.systems:/var/www/html

View file

@ -1,4 +1,7 @@
#!/bin/sh #!/bin/sh
rm -rf ./public rm -rf ./public
hugo && rsync -rvz --delete ./public/ wires.systems:/var/www/html hugo --minify || exit $?
gzip --best -rk public || exit $?
fd . public -tf -E '*.gz' -x brotli -k {} || exit $?
rsync -rvz --delete ./public/ wires.systems:/var/www/html