add drone ci
All checks were successful
continuous-integration/drone/tag Build is passing

This commit is contained in:
Han Dai 2020-02-26 08:30:56 -05:00
parent 820ddbf8d8
commit e481b95b53

25
.drone.yml Normal file
View File

@ -0,0 +1,25 @@
kind: pipeline
type: docker
name: default
steps:
- name: uglifyjs
image: node
commands:
- npm install uglify-js -g
- for i in *.js; do uglifyjs -c -m -o $i $i; done
- tar -cvzf release.tar.gz manifest.json *.html *.js
when:
event: tag
- name: gitea_release
image: plugins/gitea-release
settings:
api_key:
from_secret: gitea_api_key
base_url: https://gitea.dennx.com
files:
- release.tar.gz
trigger:
event: tag