-
Notifications
You must be signed in to change notification settings - Fork 21
39 lines (37 loc) · 1.09 KB
/
docs.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
name: Deploy tbot documentation
on:
push:
branches:
- master
jobs:
docs:
name: Deploy to GH-Pages
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
# So we can find out the version information for the docs
fetch-depth: 0
- name: Install Python
uses: actions/setup-python@v2
with:
python-version: 3.7
- name: Install dependencies, linters, doc-tools
run: |
python -m pip install --upgrade pip
pip install recommonmark sphinx sphinx_rtd_theme
pip install termcolor2 pyserial paramiko
- name: Build documentation
run: |
./Documentation/build-docs.sh
rm -r Documentation/output/.doctrees
touch Documentation/output/.nojekyll
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./Documentation/output
publish_branch: gh-pages
cname: tbot.tools
force_orphan: true