forked from Helias/Telegram-DMI-Bot
-
Notifications
You must be signed in to change notification settings - Fork 29
38 lines (35 loc) · 1.14 KB
/
doc.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
name: DMI_bot_deploy
on:
push:
branches: [master]
paths-ignore:
- "README.md"
- "docs/**"
jobs:
doc:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.9
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Install dependencies for requirements and testing
run: |
python -m pip install --upgrade pip
pip install sphinx sphinx_rtd_theme sphinx_autodoc_typehints
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
if [ -f requirements_dev.txt ]; then pip install -r requirements_dev.txt; fi
- name: Setup enviroment
run: |
mv config/settings.yaml.dist config/settings.yaml
mv data/DMI_DB.db.dist data/DMI_DB.db
- name: Sphinx build
run: |
sphinx-build -b html docs/source docs/build/docs
echo "# Telegram DMI bot documentation" > docs/build/README.md
- name: Deploy to GitHub Pages
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: docs/build