update drone ci to compress svg and js files
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
735ffc3cd1
commit
3d56f6e437
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user