Fix CD #2
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/[email protected] | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_branch: gh-pages | |
publish_dir: docs/_build/html |