Update CI

This commit is contained in:
MengYX 2020-01-21 19:35:10 +08:00
parent ca3f4c1aa4
commit 0cddb98612
No known key found for this signature in database
GPG Key ID: E63F9C7303E8F604
3 changed files with 9 additions and 25 deletions

View File

@ -7,34 +7,27 @@ clone:
depth: 1 depth: 1
steps: steps:
- name: restore-cache
image: drillster/drone-volume-cache
volumes:
- name: cache
path: /cache
settings:
restore: true
mount:
- ./node_modules
- name: installDependencies - name: installDependencies
image: node:lts image: node:lts
commands: commands:
- npm config set registry http://registry.npm.taobao.org --global - npm ci
- npm install
- name: build - name: build
image: node:lts image: node:lts
commands: commands:
- npm run build
- tar -czf legacy.tar.gz ./dist/*
- npm run build -- --modern - npm run build -- --modern
- tar -czf dist.tar.gz ./dist/* - tar -czf morden.tar.gz ./dist/*
- name: release - name: release
image: plugins/gitea-release image: plugins/gitea-release
settings: settings:
base_url: https://git.ixarea.com base_url: https://git.ixarea.com
files: files:
- dist.tar.gz - morden.tar.gz
- legacy.tar.gz
api_key: api_key:
from_secret: gitea_token from_secret: gitea_token
checksum: checksum:
@ -55,15 +48,6 @@ steps:
path_style: true path_style: true
endpoint: https://fs.sz2.ixarea.com 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: volumes:
- name: cache - name: cache
host: host:

View File

@ -1,6 +1,6 @@
{ {
"name": "unlock-music", "name": "unlock-music",
"version": "1.0.2", "version": "1.1.0",
"private": true, "private": true,
"scripts": { "scripts": {
"serve": "vue-cli-service serve", "serve": "vue-cli-service serve",

View File

@ -108,7 +108,7 @@
this.$notify.info({ this.$notify.info({
title: '离线使用', title: '离线使用',
message: '我们使用PWA技术无网络也能使用<br/>' + message: '我们使用PWA技术无网络也能使用<br/>' +
'最近更新:支持qmcogg,mflac<br/>' + '最近更新:支持tm0/2/3/6<br/>' +
'点击查看 <a target="_blank" href="https://github.com/ix64/unlock-music/wiki/使用提示">使用提示</a>', '点击查看 <a target="_blank" href="https://github.com/ix64/unlock-music/wiki/使用提示">使用提示</a>',
dangerouslyUseHTMLString: true, dangerouslyUseHTMLString: true,
duration: 10000, duration: 10000,