From e02814ca6f0d9dd75e8e64312a89061f3206743a Mon Sep 17 00:00:00 2001 From: Harald Hoyer Date: Thu, 21 Mar 2024 22:32:47 +0100 Subject: [PATCH] fix: simplify build script well ... kind of Signed-off-by: Harald Hoyer --- build.sh | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/build.sh b/build.sh index 80866ec..64b2bf0 100755 --- a/build.sh +++ b/build.sh @@ -2,10 +2,7 @@ set -ex rm -fr public -nix shell nixpkgs#zola -c zola build -nix shell nixpkgs#nodejs_20 -c npm install -nix shell nixpkgs#nodejs_20 -c npm run abridge -nix shell nixpkgs#zola -c zola build +nix shell nixpkgs#zola nixpkgs#nodejs_20 -c sh -c 'zola build && npm install && npm run abridge' find public -type f -regextype posix-extended -regex '.*\.(htm|html|css|js|xml|xsl|txt|woff|woff2|svg|otf|eot|ttf)' -exec gzip --best -k -f {} \; rsync -a --delete-after public/ /var/www/harald.hoyer.xyz/html/ chmod go-w -R /var/www/harald.hoyer.xyz/