I am using a documentation generator that behind uses react. To generate the documentation I do the following steps:
"yarn install"
"yarn build"
Then i get a folder called build/ with all static content. I would like to send this static content inside this folder into a S3 bucket.
I read aws S3 pipeline yml file, but how, before I send the folder I build it? (with the yarn commands)?
I was thinking something like:
a) Get contents from my repo
b) yarn install
c) yarn build
If everything went ok:
d) Get files inside build/ and copy to S3
Can anyone help me create this pipeline file?