Browse Source

update drone ci to compress svg and js files

master
Han Dai 2 years ago
parent
commit
3d56f6e437
  1. 9
      .drone.yml

9
.drone.yml

@ -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:
@ -20,4 +27,4 @@ steps:
from_secret: path
source:
- !./.drone.yml
- ./*
- ./*

Loading…
Cancel
Save