'Travis CI deploy to S3 bucket using the "glob" option uploads all repo files
I'm using Travis CI's deploy feature to upload all png files that contain screenshot- to S3 using the following configuration:
deploy:
on:
all_branches: true
provider: s3
access_key_id:
secure: $ACCESS_KEY
secret_access_key:
secure: $SECRECT_ACCESS_KEY
bucket: $BUCKET_NAME
upload_dir: $DIRECTORY_PATH
glob: "**/*/screenshot-*.png"
But it's uploading all the repo files to S3, not only the files with the pattern I provided.
UPDATE: the glob option works with or without quotes for the value. That's not what's causing the issue. I tried both and both didn't work.
What am I missing?
Solution 1:[1]
glob works perfectly only on Travis dpl v2
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Hossam Mourad |
