mirror of
https://github.com/clearlinux/clear-linux-documentation-zh-CN.git
synced 2026-09-01 02:34:44 +00:00
* Removed no longer needed providers
* Restored compression to archive on deploy Signed-off-by: Kevin Putnam <kevin.putnam@intel.com>
This commit is contained in:
+2
-20
@@ -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
|
||||
|
||||
+1
-1
@@ -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."
|
||||
|
||||
|
||||
Reference in New Issue
Block a user