From 538705187a98be53743084f710cda44817d6bfb8 Mon Sep 17 00:00:00 2001 From: MengYX Date: Sun, 10 Nov 2019 17:25:01 +0800 Subject: [PATCH] Add CI --- .drone.yml | 33 +++++++++++++++++++++++++++++++++ README.md | 3 +++ 2 files changed, 36 insertions(+) create mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..4411f6d --- /dev/null +++ b/.drone.yml @@ -0,0 +1,33 @@ +--- +kind: pipeline +type: docker +name: default + +clone: + depth: 1 + +steps: + - name: installDependencies + image: node:lts + commands: + - npm config set registry http://registry.npm.taobao.org + - npm install + + - name: build + image: node:lts + commands: + - npm run build + - tar -czf dist.tar.gz ./dist/* + + - name: release + image: plugins/gitea-release + settings: + base_url: https://git.ixarea.com + files: + - dist.tar.gz + api_key: + from_secret: gitea_token + checksum: + - sha256 + when: + event: [tag] diff --git a/README.md b/README.md index 174fae5..25b7613 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,9 @@ - Unlock encrypted music file in browser. - 在浏览器中解锁加密的音乐文件。 - [Online Demo](https://tool.ixarea.com/music) + +[![Build Status](https://ci.ixarea.com/api/badges/ix64/unlock-music/status.svg)](https://ci.ixarea.com/ix64/unlock-music) + ## Features - [x] Unlock in browser 在浏览器中解锁 - [x] QQMusic File QQ音乐文件 (.qmc0/.qmc3/.qmcflac)