diff --git a/.github/workflows/static.yml b/.github/workflows/static.yml index 2308015..aa27ff5 100644 --- a/.github/workflows/static.yml +++ b/.github/workflows/static.yml @@ -81,8 +81,20 @@ jobs: run: | mkdir public # Move assets to public/ - mv artifacts/pdf-output/main.pdf public/ - mv artifacts/html-output public/main-html + # Move PDF if present + if [ -f artifacts/pdf-output/main.pdf ]; then + mv artifacts/pdf-output/main.pdf public/ + else + echo "Warning: PDF artifact not found at artifacts/pdf-output/main.pdf" + fi + # Move HTML artifact — downloaded artifact may contain a nested 'main-html' dir + if [ -d artifacts/html-output/main-html ]; then + mv artifacts/html-output/main-html public/ + elif [ -d artifacts/html-output ]; then + mv artifacts/html-output public/main-html + else + echo "Warning: HTML artifact not found in artifacts/html-output" + fi # Create a simple index page echo '