Atualiza documentação #3
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: CD | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
docs: | |
name: Deploy API Documentation | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Set up Python 3.8.18 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.8.18" | |
- name: Install dependencies | |
run: | | |
pip install . | |
pip install sphinx | |
sphinx-build --version | |
- name: Build API documentation | |
run: | | |
sphinx-apidoc -o docs . | |
cd docs | |
- name: Make HTML files | |
run: | | |
cd docs | |
make html | |
- name: Deploy API documentation | |
uses: peaceiris/actions-gh-pages@v3.9.3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_branch: gh-pages | |
publish_dir: docs/_build/html |