Updated precommit. #96
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
# Builds Sphinx documentation and pushes it to the gh-pages branch, | |
# so that it is deployed. | |
# This is based on https://github.com/marketplace/actions/sphinx-to-github-pages | |
name: docs-deploy | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: '3.8' | |
- uses: actions/checkout@master | |
with: | |
fetch-depth: 0 | |
- name: Install theme | |
run: pip install pydata-sphinx-theme | |
- name: Build and Commit | |
uses: sphinx-notes/pages@v2 | |
with: | |
sphinx_version: '5.3.0' | |
- name: Push changes | |
uses: ad-m/github-push-action@master | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
branch: gh-pages | |