retry
All checks were successful
Hugo / build (push) Successful in 41s

This commit is contained in:
Brooke 2024-03-14 18:44:31 -04:00
parent b254666098
commit 915319efcb

View file

@ -15,12 +15,9 @@ jobs:
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 i minify -g
npm install -g html-minifier - name: Minify
- name: Minify HTML run: cd public/ && minify index.html > index.html && minify script.js > script.min.js && minify simplex.js > simplex.min.js && minify style.css > style.min.css && cd ..
run: cd public/ && html-minifier --input-dir . --output-dir . --file-ext html --collapse-whitespace --remove-comments --remove-optional-tags index.html && cd ..
- name: Minify CSS & JS
run: cd public/ && uglifyjs script.js -o script.min.js && uglifyjs simplex.js -o simplex.min.js && uglifyjs style.css -o style.min.css && cd ..
- 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