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
|
name: default
|
||||||
|
|
||||||
steps:
|
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
|
- name: publish
|
||||||
image: appleboy/drone-scp
|
image: appleboy/drone-scp
|
||||||
settings:
|
settings:
|
||||||
@ -20,4 +27,4 @@ steps:
|
|||||||
from_secret: path
|
from_secret: path
|
||||||
source:
|
source:
|
||||||
- !./.drone.yml
|
- !./.drone.yml
|
||||||
- ./*
|
- ./*
|
||||||
|
Loading…
Reference in New Issue
Block a user