mirror of
https://github.com/ets-labs/python-dependency-injector.git
synced 2025-01-30 19:24:31 +03:00
Add building and pushing docs to s3
This commit is contained in:
parent
c0e5eac016
commit
e4ed0bab6f
13
.travis.yml
13
.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:
|
||||
|
|
Loading…
Reference in New Issue
Block a user