From 117a9163747cea8943fa740f8117f25cfe69034d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=B2=81=E6=A0=91=E4=BA=BA?= Date: Sat, 26 Nov 2022 20:11:13 +0000 Subject: [PATCH] fix: drone build script --- .drone.yml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/.drone.yml b/.drone.yml index bcec4de..072365a 100644 --- a/.drone.yml +++ b/.drone.yml @@ -12,20 +12,25 @@ steps: - ./scripts/build-wasm.sh - npm ci - npm run test - - ./scripts/build-and-package.sh modern - ./scripts/build-and-package.sh legacy - ./scripts/build-and-package.sh extension + - ./scripts/build-and-package.sh modern - sha256sum *.zip > sha256sum.txt - name: upload - image: plugins/s3 + image: "plugins/s3" settings: - bucket: um-web + endpoint: + from_secret: S3_ENDPOINT access_key: from_secret: S3_ACCESS_KEY secret_key: from_secret: S3_SECRET_KEY + bucket: + from_secret: S3_BUCKET + region: "auto" source: | *.zip sha256sum.txt - target: /${DRONE_COMMIT_BRANCH}-latest + target: "${DRONE_REPO}/${DRONE_BUILD_NUMBER}/" + path_style: true