diff --git a/.github/workflows/pydoc_preview.yml b/.github/workflows/pydoc_preview.yml index 3ce7e4d9..0552b466 100644 --- a/.github/workflows/pydoc_preview.yml +++ b/.github/workflows/pydoc_preview.yml @@ -31,10 +31,15 @@ jobs: - name: Generate documentation run: | + set -e poetry run poe docs-generate + if [ ! -d "docs/generated" ]; then + echo "Error: Documentation generation failed - docs/generated directory not found" + exit 1 + fi - name: Upload artifact uses: actions/upload-pages-artifact@v3 with: - # Upload entire repository + # Upload generated documentation path: 'docs/generated'