diff --git a/.github/workflows/validate-book-build.yml b/.github/workflows/validate-book-build.yml index 0fc64ef..22dc3c1 100644 --- a/.github/workflows/validate-book-build.yml +++ b/.github/workflows/validate-book-build.yml @@ -36,3 +36,24 @@ jobs: run: | cd /app/book make -j build_serif_pdf build_ebook + - name: Test building website + uses: addnab/docker-run-action@v3 + with: + image: ghcr.io/hendricius/the-sourdough-framework:latest + options: -v ${{ github.workspace }}:/app + run: | + cd /app/book + make -j website + - name: Upload book Artifacts + uses: actions/upload-artifact@v3 + with: + name: books + path: | + book/book_serif/book.log + book/book_serif/book.pdf + book/book-epub/book.epub + - name: Upload website Artifacts + uses: actions/upload-artifact@v3 + with: + name: website + path: website/static_website_html diff --git a/makefile b/makefile index 1dd8daf..61d1a06 100644 --- a/makefile +++ b/makefile @@ -14,10 +14,11 @@ push_docker_image: build_docker_image docker push $(DOCKER_IMAGE):latest # Books/website +build_serif_pdf: + $(DOCKER_CMD) "cd /opt/repo/book && make build_serif_pdf" -# Quicker run for each commit, shall catch most problems -validate: - $(DOCKER_CMD) "cd /opt/repo/book && make -j build_serif_pdf build_ebook" +build_ebook: + $(DOCKER_CMD) "cd /opt/repo/book && make build_ebook" build_pdf: $(DOCKER_CMD) "cd /opt/repo/book && make"