From 278104644cc2c68dae31528c67e450c9830b7ee9 Mon Sep 17 00:00:00 2001 From: Jixun 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