This commit is contained in:
parent
4bedec7c2f
commit
92fb220b7f
1 changed files with 2 additions and 2 deletions
|
@ -18,9 +18,9 @@ jobs:
|
||||||
npm install -g uglify-js && \
|
npm install -g uglify-js && \
|
||||||
npm install -g html-minifier
|
npm install -g html-minifier
|
||||||
- name: Minify HTML
|
- name: Minify HTML
|
||||||
run: html-minifier --input-dir . --output-dir . --file-ext html --collapse-whitespace --remove-comments --remove-optional-tags index.html
|
run: html-minifier --input-dir public/ --output-dir public/ --file-ext html --collapse-whitespace --remove-comments --remove-optional-tags index.html
|
||||||
- name: Minify CSS & JS
|
- name: Minify CSS & JS
|
||||||
run: uglifyjs script.js -o script.min.js && uglifyjs style.css -o style.min.css
|
run: uglifyjs public/script.js -o public/script.min.js && uglifyjs public/style.css -o public/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
|
||||||
|
|
Loading…
Add table
Reference in a new issue