Added compression step to deploy.
All checks were successful
/ deploy (push) Successful in 1m19s

This commit is contained in:
Melkor 2024-07-07 18:01:55 -04:00
parent f57ffd6123
commit 32e0b589e1
2 changed files with 8 additions and 0 deletions

View file

@ -36,6 +36,11 @@ jobs:
echo "Compiling hugo site."
ssh -p 42042 -o StrictHostKeyChecking=no melkor@barad-dur "cd /srv/sites/anubis.mgk.one/git && npm run build"
- name: Compressing hugo site
run: |
echo "Compressing hugo site."
ssh -p 42042 -o StrictHostKeyChecking=no melkor@barad-dur "find /srv/sites/anubis.mgk.one/git -type f \( -name '*.html' -o -name '*.js' -o -name '*.json' -o -name '*.xml' -o -name '*.css' \) -exec brotli -v -k -f --best {} \;"
- name: Using rsync to copy over the new website from the webserver's git repo
run: |
echo "Using rsync to copy over the new website from the webserver's git repo."

View file

@ -29,5 +29,8 @@
"prettier-plugin-tailwindcss": "^0.5.14",
"tailwind-bootstrap-grid": "^5.1.0",
"tailwindcss": "^3.4.3"
},
"dependencies": {
"hugo-extended": "^0.128.0"
}
}