From becf5620f381db92f01dffa9ced3a3865a8bfd57 Mon Sep 17 00:00:00 2001 From: "Aaron (\"AJ\") Steers" Date: Sat, 9 Nov 2024 19:11:01 -0800 Subject: [PATCH] apply coderabbit suggestion Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> --- .github/workflows/pydoc_preview.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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'