CI: remove doc-build from pytest workflow, instead run the docs job on PR

Docs upload will only happen on main
This commit is contained in:
Michael Panchenko committed 2026-04-14 00:05:46 +02:00
1 parent 587f74ccdd
commit 0c664b365c
2 files changed
+5 -3

No files matched your search

+5 -1
View File
@@ -1,8 +1,10 @@
name: Docs Build
on:
pull_request:
push:
branches: [ main ]
branches:
- main
workflow_dispatch:
permissions:
@@ -47,11 +49,13 @@ jobs:
continue-on-error: false
- name: Upload Pages artifact
if: github.ref == 'refs/heads/main'
uses: actions/upload-pages-artifact@v3
with:
path: docs/_build
deploy:
if: github.ref == 'refs/heads/main'
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
-2
View File
@@ -576,5 +576,3 @@ jobs:
- name: Type-checking with mypy
shell: bash
run: uv run poe type-check
- name: Make sure documentation builds
run: uv run poe doc-build