| name: Publish docs | |
| on: | |
| push: | |
| branches: | |
| - master | |
| workflow_dispatch: {} | |
| jobs: | |
| docs: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - name: Setup Python | |
| uses: actions/setup-python@v2 | |
| with: | |
| python-version: 3.8 | |
| - name: Install Tox | |
| run: pip install tox | |
| - name: Run Tox | |
| run: tox -e docs | |
| - name: Publish | |
| uses: JamesIves/github-pages-deploy-action@4.1.3 | |
| with: | |
| branch: gh-pages | |
| folder: docs/_build |