forked from clearlinux/clear-linux-documentation
-
Notifications
You must be signed in to change notification settings - Fork 0
/
notravis.yml
54 lines (47 loc) · 1.22 KB
/
notravis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
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