From 39c0950022c42bb820a605dca337f4610f5d20a4 Mon Sep 17 00:00:00 2001 From: Wu Xiaotian Date: Tue, 16 Apr 2019 10:44:42 +0800 Subject: [ci] deploy github pages --- .travis.yml | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/.travis.yml b/.travis.yml index 2ef55f5..da2b48b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -23,18 +23,6 @@ install: script: - ./docker-build --name ${DISTRO} --verbose --config .travis.yml --build scripts -deploy: - provider: pages - github-token: $GITHUB_TOKEN - #keep-history: true - skip_cleanup: true - committer-from-gh: true - target-branch: gh-pages - local-dir: html-report - on: - all_branches: true - condition: ${DISTRO} =~ ^fedora.*$ - after_success: - 'if [[ "$TRAVIS_SECURE_ENV_VARS" == "true" && "$TRAVIS_PULL_REQUEST" != "false" && ${DISTRO} =~ ^fedora.*$ ]]; then REPO_SLUG_ARRAY=(${TRAVIS_REPO_SLUG//\// }); @@ -47,6 +35,16 @@ after_success: fi' deploy: + - provider: pages + github-token: $GITHUB_TOKEN + #keep-history: true + skip_cleanup: true + committer-from-gh: true + target-branch: gh-pages + local-dir: html-report + on: + all_branches: true + condition: ${DISTRO} =~ ^fedora.*$ - provider: script script: ./docker-build --verbose --config .travis.yml --release github skip_cleanup: true -- cgit v1.2.1