From 91706e3273206d06cad10c5a83c752170eb3a7d9 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:59:08 +0000 Subject: [PATCH] ci: better glob for file upload --- .drone.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.drone.yml b/.drone.yml index 072365a..cb444be 100644 --- a/.drone.yml +++ b/.drone.yml @@ -16,10 +16,13 @@ steps: - ./scripts/build-and-package.sh extension - ./scripts/build-and-package.sh modern - sha256sum *.zip > sha256sum.txt + - mkdir -p upload + - mv *.zip sha256sum.txt upload/ - name: upload image: "plugins/s3" settings: + path_style: true endpoint: from_secret: S3_ENDPOINT access_key: @@ -29,8 +32,6 @@ steps: bucket: from_secret: S3_BUCKET region: "auto" - source: | - *.zip - sha256sum.txt + source: "upload/*" + strip_prefix: "upload/" target: "${DRONE_REPO}/${DRONE_BUILD_NUMBER}/" - path_style: true