test minify
Some checks failed
Hugo / build (push) Failing after 43s

This commit is contained in:
Brooke 2024-03-14 17:59:31 -04:00
parent e359e56396
commit 4bedec7c2f

View file

@ -14,7 +14,13 @@ jobs:
- name: Grab packages
run: |
apt-get update && \
apt-get install --no-install-recommends --no-install-suggests -y jq rsync
apt-get install --no-install-recommends --no-install-suggests -y jq rsync && \
npm install -g uglify-js && \
npm install -g html-minifier
- name: Minify HTML
run: html-minifier --input-dir . --output-dir . --file-ext html --collapse-whitespace --remove-comments --remove-optional-tags index.html
- name: Minify CSS & JS
run: uglifyjs script.js -o script.min.js && uglifyjs style.css -o style.min.css
- name: Test static page
run: bash ${{ gitea.workspace }}/bin/test_static_page.sh
- name: Deploy to Server