From e4ed0bab6f76dd12d08bb7c22f92cbcd46d9ce79 Mon Sep 17 00:00:00 2001 From: Roman Mogylatov Date: Wed, 28 Oct 2020 17:37:43 -0400 Subject: [PATCH] Add building and pushing docs to s3 --- .travis.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.travis.yml b/.travis.yml index 9c73976b..b00f6bb9 100644 --- a/.travis.yml +++ b/.travis.yml @@ -100,6 +100,19 @@ jobs: after_success: - python -m pip install twine - python -m twine upload wheelhouse/*.whl + - python: 3.8 + if: branch = develop + install: + - pip install -r requirements-doc.txt + - pip install awscli + - pip install -e . + script: (cd docs && make clean html) + after_success: + - aws s3 sync docs/_build/html s3://python-dependency-injector-docs --delete + - aws cloudfront create-invalidation --distribution-id ${AWS_CLOUDFRONT_DISTRIBUTION_ID} --path "/*" > /dev/null + - echo "Cache invalidation triggered" +echo "Result: OK" + - python -m twine upload wheelhouse/*.whl notifications: slack: rooms: