mirror of
https://github.com/clearlinux/clear-linux-documentation.git
synced 2026-06-15 18:36:03 +00:00
c44548a55a
* Adding GitHub workflow for checking PRs. Signed-off-by: Kevin Putnam <kevin.putnam@intel.com> * Added carriage return to end of document. Signed-off-by: Kevin Putnam <kevin.putnam@intel.com> * Adds build on push to master deploying to developmentHTML branch. Adds build on push to publish deploying to latestHTML branch. Signed-off-by: Kevin Putnam <kevin.putnam@intel.com> * Uncomment publish URL. Signed-off-by: Kevin Putnam <kevin.putnam@intel.com> * Renamed Travis CI/CD file to avoid running it. Signed-off-by: Kevin Putnam <kevin.putnam@intel.com>
55 lines
1.2 KiB
YAML
55 lines
1.2 KiB
YAML
language: python
|
|
|
|
python:
|
|
- "3.6"
|
|
|
|
# command to install dependencies
|
|
install:
|
|
- pip3 install -q -r requirements.txt
|
|
|
|
# command to run tests
|
|
script:
|
|
- make py
|
|
- make htmlall
|
|
|
|
before_deploy:
|
|
- make linkcheck
|
|
# only deploy the latest tagged release of Simplified Chinese docs
|
|
- wget https://github.com/clearlinux/clear-linux-documentation-zh-CN/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
|
|
|
|
deploy:
|
|
- provider: pages
|
|
skip_cleanup: true
|
|
github_token: $GITHUB_TOKEN
|
|
target-branch: latestHTML
|
|
on:
|
|
branch: publish
|
|
local_dir: source/_build/html/
|
|
- provider: pages
|
|
skip_cleanup: true
|
|
github_token: $GITHUB_TOKEN
|
|
target-branch: developmentHTML
|
|
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
|
|
file: clearlinux-docs-zh-CN.tar.gz
|
|
on:
|
|
tags: true
|
|
|
|
|
|
after_deploy:
|
|
- wget $PUBLISH_URL
|
|
- cat clearlinux-latest
|