Fix typo in description #32
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: Documentation | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
docs: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout github repo | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
fetch-tags: true | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.11" | |
- name: Lint | |
uses: psf/black@stable | |
with: | |
version: "23.7.0" | |
- name: Build docs | |
run: | | |
pip install --upgrade pip | |
pip install -r ./docs/requirements.txt | |
pip install sphinx | |
sphinx-build docs ./docs/_build/html/ | |
- name: Checkout pages branch | |
uses: actions/checkout@v4 | |
with: | |
ref: gh-pages | |
path: gh-pages | |
- name: Commit documentation changes | |
run: | | |
cp -r docs/_build/html/* gh-pages/ | |
cp -r docs/*.pdf gh-pages/. | |
cd gh-pages | |
touch .nojekyll | |
git config --local user.email "[email protected]" | |
git config --local user.name "GitHub Action" | |
git add . | |
git commit -m "Update documentation" -a || true | |
git push |