diff --git a/.travis.yml b/.travis.yml index 2dca54d2..328fea31 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,6 +9,7 @@ env: branches: only: - master + - CI/examples_short jobs: exclude: - python: "3.6" @@ -39,16 +40,21 @@ script: after_success: - coveralls deploy: - provider: pages:git - skip_cleanup: true - verbose: true - token: $GITHUB_TOKEN - edge: true - script: - make -C docs/ html - touch docs/_build/html/.nojekyll - local_dir: ./docs/_build/html/ - keep_history: true - on: - python: 3.8 - condition: $DEP = "[all]" + - provider: script + script: bash docs/deploy.sh + on: + branch: CI/examples_short + python: 3.8 + condition: $DEP = "[all]" + edge: true + - provider: pages:git + skip_cleanup: true + verbose: true + token: $GITHUB_TOKEN + edge: true + local_dir: ./docs/_build/html/ + keep_history: true + on: + branch: CI/examples_short + python: 3.8 + condition: $DEP = "[all]" diff --git a/docs/deploy.sh b/docs/deploy.sh new file mode 100755 index 00000000..8b11e687 --- /dev/null +++ b/docs/deploy.sh @@ -0,0 +1,3 @@ +make -C docs/ clean +make -C docs/ html +touch docs/_build/html/.nojekyll