diff --git a/.github/workflows/book-publish-live.yml b/.github/workflows/book-publish-live.yml index 8249457b8..c98ed0f1b 100644 --- a/.github/workflows/book-publish-live.yml +++ b/.github/workflows/book-publish-live.yml @@ -913,8 +913,13 @@ jobs: - name: 📋 Verify Downloaded Artifacts run: | echo "📦 Verifying downloaded artifacts..." - if [ ! -d "html-vol1-temp" ] || [ ! -d "html-vol2-temp" ]; then - echo "❌ Required volume HTML artifacts were not downloaded." + DEPLOY_TARGET="${{ github.event.inputs.deploy_target }}" + if [[ "$DEPLOY_TARGET" == "vol1" || "$DEPLOY_TARGET" == "all" ]] && [ ! -d "html-vol1-temp" ]; then + echo "❌ Required Volume I HTML artifact was not downloaded." + exit 1 + fi + if [[ "$DEPLOY_TARGET" == "vol2" || "$DEPLOY_TARGET" == "all" ]] && [ ! -d "html-vol2-temp" ]; then + echo "❌ Required Volume II HTML artifact was not downloaded." exit 1 fi diff --git a/book/quarto/config/_quarto-epub-vol1.yml b/book/quarto/config/_quarto-epub-vol1.yml index e4e68f532..cf3204469 100644 --- a/book/quarto/config/_quarto-epub-vol1.yml +++ b/book/quarto/config/_quarto-epub-vol1.yml @@ -11,6 +11,7 @@ project: type: book output-dir: _build/epub-vol1 + output-file: Machine-Learning-Systems.epub execute-dir: project post-render: - scripts/clean_svgs.py diff --git a/book/quarto/config/_quarto-epub-vol2.yml b/book/quarto/config/_quarto-epub-vol2.yml index 5c74eaa9b..2d731c0a7 100644 --- a/book/quarto/config/_quarto-epub-vol2.yml +++ b/book/quarto/config/_quarto-epub-vol2.yml @@ -11,6 +11,7 @@ project: type: book output-dir: _build/epub-vol2 + output-file: Machine-Learning-Systems.epub execute-dir: project post-render: - scripts/clean_svgs.py diff --git a/book/quarto/config/_quarto-pdf-vol1.yml b/book/quarto/config/_quarto-pdf-vol1.yml index 98e127c4d..dfc232110 100644 --- a/book/quarto/config/_quarto-pdf-vol1.yml +++ b/book/quarto/config/_quarto-pdf-vol1.yml @@ -14,6 +14,7 @@ project: output-dir: _build/pdf-vol1 + output-file: Machine-Learning-Systems.pdf book: favicon: assets/images/icons/favicon.png diff --git a/book/quarto/config/_quarto-pdf-vol2.yml b/book/quarto/config/_quarto-pdf-vol2.yml index 77f0739f4..a214d7d34 100644 --- a/book/quarto/config/_quarto-pdf-vol2.yml +++ b/book/quarto/config/_quarto-pdf-vol2.yml @@ -10,6 +10,7 @@ project: output-dir: _build/pdf-vol2 + output-file: Machine-Learning-Systems.pdf book: favicon: assets/images/icons/favicon.png