From c014a643555a3ee2d28d2a79d07c3410422c852a Mon Sep 17 00:00:00 2001 From: Kevin Putnam Date: Mon, 9 Sep 2019 14:55:27 -0700 Subject: [PATCH] * Removed no longer needed providers * Restored compression to archive on deploy Signed-off-by: Kevin Putnam --- .travis.yml | 22 ++-------------------- source/Makefile | 2 +- 2 files changed, 3 insertions(+), 21 deletions(-) diff --git a/.travis.yml b/.travis.yml index f92c41d2..f8fdcc06 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,30 +11,12 @@ install: # command to run tests script: - make py - - make htmlall + - make htmlzh before_deploy: - - make linkcheck - # only deploy the latest tagged release of Simplified Chinese docs - - wget https://github.com/clearlinux/clear-linux-documentation/releases/latest/download/clearlinux-docs-zh-CN.tar.gz - - mkdir source/_build/html/zh_CN - - tar xvzf clearlinux-docs-zh-CN.tar.gz -C source/_build/html/zh_CN + - tar -zcvf clearlinux-docs-zh-CN.tar.gz -C source/_build/zh_CN . deploy: - - provider: pages - skip_cleanup: true - github_token: $GITHUB_TOKEN - target-branch: latestHTML - on: - branch: master - local_dir: source/_build/html/ - - provider: pages - skip_cleanup: true - github_token: $GITHUB_TOKEN - target-branch: developmentHTML - on: - branch: development - local_dir: source/_build/html/ - provider: releases skip_cleanup: true api_key: $GITHUB_TOKEN diff --git a/source/Makefile b/source/Makefile index 444ea7fe..1f64c3c7 100644 --- a/source/Makefile +++ b/source/Makefile @@ -64,7 +64,7 @@ htmlde: @echo "Build finished. The HTML pages are in $(BUILDDIR)/html/de." htmlzh: - $(SPHINXBUILD) -b html -D language='zh_CN' $(ALLSPHINXOPTS) $(BUILDDIR)/html/zh_CN + $(SPHINXBUILD) -b html -D language='zh_CN' $(ALLSPHINXOPTS) $(BUILDDIR)/zh_CN @echo @echo "Build finished. The HTML pages are in $(BUILDDIR)/html/zh_CN."