From 0cddb98612ef7c4e2f173f2af3fefa73b967002f Mon Sep 17 00:00:00 2001 From: MengYX Date: Tue, 21 Jan 2020 19:35:10 +0800 Subject: [PATCH] Update CI --- .drone.yml | 30 +++++++----------------------- package.json | 2 +- src/App.vue | 2 +- 3 files changed, 9 insertions(+), 25 deletions(-) diff --git a/.drone.yml b/.drone.yml index f42d296..8d0d7d2 100644 --- a/.drone.yml +++ b/.drone.yml @@ -7,34 +7,27 @@ clone: depth: 1 steps: - - name: restore-cache - image: drillster/drone-volume-cache - volumes: - - name: cache - path: /cache - settings: - restore: true - mount: - - ./node_modules - - name: installDependencies image: node:lts commands: - - npm config set registry http://registry.npm.taobao.org --global - - npm install + - npm ci - name: build image: node:lts commands: + - npm run build + - tar -czf legacy.tar.gz ./dist/* - npm run build -- --modern - - tar -czf dist.tar.gz ./dist/* + - tar -czf morden.tar.gz ./dist/* + - name: release image: plugins/gitea-release settings: base_url: https://git.ixarea.com files: - - dist.tar.gz + - morden.tar.gz + - legacy.tar.gz api_key: from_secret: gitea_token checksum: @@ -55,15 +48,6 @@ steps: path_style: true endpoint: https://fs.sz2.ixarea.com - - name: rebuild-cache - image: drillster/drone-volume-cache - volumes: - - name: cache - path: /cache - settings: - rebuild: true - mount: - - ./node_modules volumes: - name: cache host: diff --git a/package.json b/package.json index 3cdcc25..6dbd118 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "unlock-music", - "version": "1.0.2", + "version": "1.1.0", "private": true, "scripts": { "serve": "vue-cli-service serve", diff --git a/src/App.vue b/src/App.vue index 0b68319..8cd8fd8 100644 --- a/src/App.vue +++ b/src/App.vue @@ -108,7 +108,7 @@ this.$notify.info({ title: '离线使用', message: '我们使用PWA技术,无网络也能使用
' + - '最近更新:支持qmcogg,mflac
' + + '最近更新:支持tm0/2/3/6
' + '点击查看 使用提示', dangerouslyUseHTMLString: true, duration: 10000,