ci: better glob for file upload
Some checks reported errors
continuous-integration/drone/pr Build was killed
continuous-integration/drone/push Build is passing

This commit is contained in:
鲁树人 2022-11-26 20:59:08 +00:00
parent ab2b37ba3c
commit 278104644c

View File

@ -16,10 +16,13 @@ steps:
- ./scripts/build-and-package.sh extension - ./scripts/build-and-package.sh extension
- ./scripts/build-and-package.sh modern - ./scripts/build-and-package.sh modern
- sha256sum *.zip > sha256sum.txt - sha256sum *.zip > sha256sum.txt
- mkdir -p upload
- mv *.zip sha256sum.txt upload/
- name: upload - name: upload
image: "plugins/s3" image: "plugins/s3"
settings: settings:
path_style: true
endpoint: endpoint:
from_secret: S3_ENDPOINT from_secret: S3_ENDPOINT
access_key: access_key:
@ -29,8 +32,6 @@ steps:
bucket: bucket:
from_secret: S3_BUCKET from_secret: S3_BUCKET
region: "auto" region: "auto"
source: | source: "upload/*"
*.zip strip_prefix: "upload/"
sha256sum.txt
target: "${DRONE_REPO}/${DRONE_BUILD_NUMBER}/" target: "${DRONE_REPO}/${DRONE_BUILD_NUMBER}/"
path_style: true