parent
e359e56396
commit
4bedec7c2f
1 changed files with 8 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue