-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
/
Copy pathconfig.yml
53 lines (51 loc) · 1.36 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
version: 2
jobs:
docs-build:
docker:
- image: ruby:2.6
steps:
- checkout
- run:
name: Install AsciiDoctor & Rouge
command: |
gem install asciidoctor
gem install rouge -v 3.3.0
- run:
name: Build Site
command: asciidoctor -a toc="left" -a toclevels=2 README.adoc -o _build/html/index.html
- persist_to_workspace:
root: _build
paths: html
docs-deploy:
docker:
- image: node:8.10.0
steps:
- checkout
- attach_workspace:
at: _build
- run:
name: Disable jekyll builds
command: touch _build/html/.nojekyll
- run:
name: Install and configure dependencies
command: |
npm install -g --silent [email protected]
git config user.email "[email protected]"
git config user.name "ci-build"
- add_ssh_keys:
fingerprints:
- "ea:f9:10:fa:c9:1c:7d:cd:f9:21:37:bf:a8:ee:b9:c9"
- run:
name: Deploy docs to gh-pages branch
command: gh-pages -add --dotfiles --message "[skip ci] Update site" --dist _build/html
workflows:
version: 2
build:
jobs:
- docs-build
- docs-deploy:
requires:
- docs-build
filters:
branches:
only: master