Skip to content

Invalidate docs action cache to force rebuild #3

Invalidate docs action cache to force rebuild

Invalidate docs action cache to force rebuild #3

Workflow file for this run

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/[email protected]
with:
branch: gh-pages
folder: docs/gh-pages