Don't use precompiled cython code #4
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: docs | |
on: | |
push: | |
branches: | |
- master | |
permissions: | |
contents: write | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 # otherwise, you will failed to push refs to dest repo | |
- uses: actions/setup-python@v3 | |
with: | |
python-version: "3.11" | |
- name: Install nox | |
run: | | |
pip install nox | |
- name: Set up cache for nox | |
uses: actions/cache@v2 | |
id: cached-nox-datadir | |
with: | |
path: .nox | |
key: nox-${{ runner.os }}-${{ steps.full-python-version.outputs.version }}-${{ hashFiles('**/pyproject.toml') }}-1 | |
- name: Run nox | |
run: nox -e docs_github | |
- name: Deploy documentation | |
if: ${{ github.event_name == 'push' }} | |
uses: JamesIves/github-pages-deploy-action@v4.4.0 | |
with: | |
branch: gh-pages | |
folder: docs/gh-pages |