update drone ci to compress svg and js files
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Han Dai 2020-02-26 11:38:28 -05:00
parent 735ffc3cd1
commit 3d56f6e437

View File

@ -3,6 +3,13 @@ type: docker
name: default
steps:
- name: compress
image: node
commands:
- npm install uglify-js svgo -g
- for i in js/*.js; do uglifyjs -c -m -o $i -- $i; done
- for i in $(find . -name "*.svg"); do svgo $i -o $i; done
- name: publish
image: appleboy/drone-scp
settings: