From 19a06e408b4a411eb4581acc5816c1535d82193a Mon Sep 17 00:00:00 2001 From: brooke Date: Mon, 10 Jun 2024 19:40:09 -0400 Subject: [PATCH] add precompression to build script --- .forgejo/workflows/deploy.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.forgejo/workflows/deploy.yaml b/.forgejo/workflows/deploy.yaml index b51a0c0..4d49366 100644 --- a/.forgejo/workflows/deploy.yaml +++ b/.forgejo/workflows/deploy.yaml @@ -14,6 +14,8 @@ jobs: submodules: 'true' - name: Run build task run: hugo --minify + - name: pre-compress + run: find ./public/* -type f \( -name '*.html' -o -name '*.js' -o -name '*.css'\) -exec gzip -v -k -f --best {} \\; - name: Deploy to Server uses: https://git.myco.systems/mirrors/ssh-deploy@main env: