Upload artifacts on each PR (#299)

* Upload artifacts on each PR

* Use artifact V3
This commit is contained in:
Hendrik Kleinwaechter
2023-12-07 09:00:18 +01:00
committed by GitHub
parent f9667718d4
commit 354737861f
2 changed files with 25 additions and 3 deletions

View File

@@ -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

View File

@@ -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"