-
Notifications
You must be signed in to change notification settings - Fork 1
/
config.yml
75 lines (73 loc) · 2.14 KB
/
config.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
version: 2
jobs:
lint-docs:
docker:
- image: circleci/ruby:2.4.1-node
steps:
- checkout
- run:
name: install markdownlint
command: |
sudo npm install -g [email protected]
markdownlint --version
- run:
name: lint .md files
command: markdownlint --config .markdownlint.json .
deploy-docs:
docker:
- image: circleci/python:2.7
steps:
- checkout
- run:
name: install mkdocs
command: sudo pip install mkdocs
- run:
name: generate docs
command: mkdocs build --clean
- run:
name: install lftp
command: |
sudo apt-get update -q
sudo apt-get install -y lftp
- run:
name: deploy docs
command: lftp sftp://${DEPLOY_DOCS_USER}:${DEPLOY_DOCS_PASS}@${DEPLOY_DOCS_HOST} -e "set ftp:ssl-force true; set ftp:ssl-protect-data true; set ssl:verify-certificate no; set sftp:auto-confirm yes; mirror -v -R ./site ${DEPLOY_DOCS_BASE}/doc/${CIRCLE_BRANCH}; quit"
deploy-website:
docker:
- image: circleci/python:2.7
steps:
- checkout
- run:
name: install lftp
command: |
sudo apt-get update -q
sudo apt-get install -y lftp
- run:
name: deploy website
command: lftp sftp://${DEPLOY_DOCS_USER}:${DEPLOY_DOCS_PASS}@${DEPLOY_DOCS_HOST} -e "set ftp:ssl-force true; set ftp:ssl-protect-data true; set ssl:verify-certificate no; set sftp:auto-confirm yes; mirror -v -R ./www ${DEPLOY_DOCS_BASE}; quit"
workflows:
version: 2
website-workflow:
jobs:
- lint-docs:
filters:
branches:
only:
- master
- /^release.*/
- deploy-docs:
requires:
- lint-docs
filters:
branches:
only:
- master
- /^release.*/
- deploy-website:
filters:
branches:
only:
- master
notify:
webhooks:
- url: https://webhooks.gitter.im/e/9ff4be3a6f08f55106e2