Improvement: Requirements installation in venv (#686) #140
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: Docs | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- master | |
- v* | |
jobs: | |
deploy-documentation: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Set up Python 3.10 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: "3.10" | |
- name: Generate diagrams | |
run: | | |
sudo apt-get install graphviz -y | |
pip install -r requirements.txt | |
pip install -r requirements_developers.txt | |
python docs/fsm/graphviz/draw_state_diagrams.py | |
- name: Build documentation | |
uses: ammaraskar/sphinx-action@master | |
with: | |
docs-folder: docs/ | |
pre-build-command: | | |
mkdir -p docs/build/ | |
touch docs/build/.nojekyll | |
pip install -r requirements_developers.txt | |
build-command: sphinx-build -b html . build | |
- name: Deploy documentation | |
uses: JamesIves/github-pages-deploy-action@4.1.0 | |
with: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
BRANCH: gh-pages | |
FOLDER: docs/build |