diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 629032dc..74cbdcfc 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -1,4 +1,9 @@ -name: deploy +name: docs + +on: + release: + types: [published] + workflow_dispatch: permissions: contents: write @@ -19,10 +24,7 @@ jobs: run: python -m pip install .[docs] --upgrade pip - name: Generate API docs & Build sphinx documentation run: | - git fetch --tags - cd docs - python build.py - cd .. + sphinx-build -M help docs docs-out - name: Setup Pages uses: actions/configure-pages@v5 - name: Upload artifact