summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWu Xiaotian <[email protected]>2019-04-16 10:44:42 +0800
committerraveit65 <[email protected]>2019-04-16 10:47:33 +0200
commit39c0950022c42bb820a605dca337f4610f5d20a4 (patch)
treee6e4a90481f566771a6dbe3df55a4d406edac447
parent5d3ce0ff2ca7d6230fe15a5b4c4359491303aec2 (diff)
downloadmate-media-39c0950022c42bb820a605dca337f4610f5d20a4.tar.bz2
mate-media-39c0950022c42bb820a605dca337f4610f5d20a4.tar.xz
[ci] deploy github pages
-rw-r--r--.travis.yml22
1 files 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