From 8094f3ad584ed9742068e6346cb6181c195b9c64 Mon Sep 17 00:00:00 2001 From: MengYX Date: Fri, 31 Jan 2020 14:22:55 +0800 Subject: [PATCH] Update CI --- .drone.yml | 24 +++++++++++++++++------- 1 file changed, 17 insertions(+), 7 deletions(-) diff --git a/.drone.yml b/.drone.yml index 8d0d7d2..236ab2d 100644 --- a/.drone.yml +++ b/.drone.yml @@ -16,9 +16,9 @@ steps: image: node:lts commands: - npm run build - - tar -czf legacy.tar.gz ./dist/* + - tar -czf legacy.tar.gz -C ./dist . - npm run build -- --modern - - tar -czf morden.tar.gz ./dist/* + - tar -czf morden.tar.gz -C ./dist . - name: release @@ -44,11 +44,21 @@ steps: secret_key: from_secret: aws_secret_access_key source: dist/**/* - target: / + strip_prefix: dist/ + target: /public path_style: true endpoint: https://fs.sz2.ixarea.com -volumes: - - name: cache - host: - path: /tmp/cache \ No newline at end of file + + - name: upload + image: plugins/s3 + settings: + bucket: unlock-music + access_key: + from_secret: aws_access_key_id + secret_key: + from_secret: aws_secret_access_key + source: ./*.tar.gz + target: /build/${DRONE_BUILD_NUMBER} + path_style: true + endpoint: https://fs.sz2.ixarea.com