chore: update Dockerfile #49
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |