diff --git a/.gitignore b/.gitignore index 50c1c07..aeb9cb5 100644 --- a/.gitignore +++ b/.gitignore @@ -5,4 +5,5 @@ Gemfile.lock *.swp .bundle .vscode -vendor/ \ No newline at end of file +vendor/ +doc/ \ No newline at end of file diff --git a/buildspec.yml b/buildspec.yml new file mode 100644 index 0000000..40a8f37 --- /dev/null +++ b/buildspec.yml @@ -0,0 +1,14 @@ +version: 0.2 + +phases: + + build: + on-failure: ABORT + commands: + - bundle exec rdoc lib/*.rb + - rm -rf api/uc3-ssm + - mkdir -p api/uc3-ssm/ruby + - cp -r doc/* api/uc3-ssm/ruby + - echo aws s3 cp --recursive api s3://${S3CFBUCKET}/api + - aws s3 cp --recursive api s3://${S3CFBUCKET}/api + - aws cloudfront create-invalidation --distribution-id ${CFDISTRIBUTIONID} --paths /* --region us-east-1