update dependencies #15
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: | |
- xiaoyi_doc | |
workflow_dispatch: | |
permissions: # This sets permissions for all jobs | |
contents: write | |
actions: read | |
jobs: | |
build-and-deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.11' | |
- name: Install dependencies | |
run: | | |
pip install -r ./docs/requirements.txt | |
pip install sphinx | |
- name: Build documentation | |
run: | | |
sphinx-build -b html ./docs/source/ ./ # Build directly into the root of the working directory | |
- name: Commit files | |
run: | | |
git config --global user.email "[email protected]" | |
git config --global user.name "GitHub Action" | |
git add -A | |
git commit -m "Deploy documentation updates [skip ci]" || echo "No changes to commit" | |
git push origin HEAD:xiaoyi_doc |