Create sphinx.yml
This commit is contained in:
parent
ff3901cc4b
commit
935cb44b84
|
@ -0,0 +1,35 @@
|
|||
name: Sphinx build
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ "release" ]
|
||||
paths:
|
||||
- '.github/workflows/sphinx.yml'
|
||||
- 'src/**'
|
||||
- 'docs/**'
|
||||
- 'files/**'
|
||||
|
||||
jobs:
|
||||
docs:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/setup-python@v3
|
||||
|
||||
- name: Build library requirements
|
||||
run: pip install -r src/requirements.txt
|
||||
|
||||
- name: Build docs
|
||||
run: |
|
||||
cd docs/ && \
|
||||
pip install -r requirements.txt && \
|
||||
make html -e
|
||||
|
||||
- name: Deploy
|
||||
uses: peaceiris/actions-gh-pages@v3
|
||||
with:
|
||||
publish_branch: gh-pages
|
||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
publish_dir: docs/_build/html/
|
||||
force_orphan: true
|
Loading…
Reference in New Issue