Here is my current buildspec file:
version: 0.2
phases:
build:
commands:
- pip install mkdocs
- mkdocs build
artifacts:
files:
- site/**/*
I want to get all the files and folders in the site folder.
With this file, the generated artifacts have this structure:
site
├── folder-1
│ └── file-1.html
└── folder-2
├── file-2.html
└── subfolder
└── file-3.html
I want to get rid of the site/ top folder and have all the subfolders and files going up at the "root" of the artifact folder, as it contains a static website I want to upload to an S3 bucket.
Therefore, I can't use the discard-paths argument as everything is going to be flattened, when I want to keep the subfolder hierarchy.