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

@ -10,11 +10,17 @@ jobs:
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
with: with:
submodules: 'recursive' submodules: 'recursive'
- name: Grab packages - name: Grab packages
run: | run: |
apt-get update && \ 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 - name: Test static page
run: bash ${{ gitea.workspace }}/bin/test_static_page.sh run: bash ${{ gitea.workspace }}/bin/test_static_page.sh
- name: Deploy to Server - name: Deploy to Server