I'm building a project that puts all of it's files in a 'dist' folder, and running it through CodeBuild. I'm trying to get it to put all of the files and folders in 'dist' into the root of the s3 bucket, but I'm having trouble figuring out how to make that work.
My 'dist' folder looks something like this:
- index.html
- somecssfiles.css
- fonts/
- - some fonts or w/e
- js/
- - some javascript files
I've tried a lot of different stuff, but can't seem to get it to just drop 'dist/*' into the root of the s3 bucket. Here's the current iteration of my artifacts
property in the buildspec.yml file:
artifacts:
files:
- '*'
discard-paths: yes
base-directory: 'dist'
I thought that would probably work, but it ignores the folders. Any help is appreciated, thanks for reading.