Update CI
This commit is contained in:
parent
ca3f4c1aa4
commit
0cddb98612
30
.drone.yml
30
.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:
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "unlock-music",
|
||||
"version": "1.0.2",
|
||||
"version": "1.1.0",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"serve": "vue-cli-service serve",
|
||||
|
@ -108,7 +108,7 @@
|
||||
this.$notify.info({
|
||||
title: '离线使用',
|
||||
message: '我们使用PWA技术,无网络也能使用<br/>' +
|
||||
'最近更新:支持qmcogg,mflac<br/>' +
|
||||
'最近更新:支持tm0/2/3/6<br/>' +
|
||||
'点击查看 <a target="_blank" href="https://github.com/ix64/unlock-music/wiki/使用提示">使用提示</a>',
|
||||
dangerouslyUseHTMLString: true,
|
||||
duration: 10000,
|
||||
|
Loading…
Reference in New Issue
Block a user