Files
the-sourdough-framework/.github/workflows/test-book-website.yml
Hendrik Kleinwaechter cef0d9c8f7
Some checks failed
Release the book and website / build-and-push-image (push) Has been cancelled
Release the book and website / release-book-website (push) Has been cancelled
Rename action & final cleanups
2025-03-14 13:12:24 +01:00

57 lines
1.5 KiB
YAML

name: Test book and website for given image
on:
push:
branches-ignore:
- main
pull_request:
branches:
- '**'
env:
DOCKER_IMAGE: ghcr.io/${{ github.repository }}:latest
jobs:
test-book-website:
runs-on: ubuntu-latest
steps:
- name: Set up git repository
uses: actions/checkout@v3
- name: Print dependency versions
uses: addnab/docker-run-action@v3
with:
image: ${{ env.DOCKER_IMAGE }}
options: -v ${{ github.workspace }}:/app
run: |
cd /app/book
make show_tools_version
- name: Print build variables
uses: addnab/docker-run-action@v3
with:
image: ${{ env.DOCKER_IMAGE }}
options: -v ${{ github.workspace }}:/app
run: |
cd /app/book
make printvars
- name: Test baking the release versions and website
uses: addnab/docker-run-action@v3
with:
image: ${{ env.DOCKER_IMAGE }}
options: -v ${{ github.workspace }}:/app
run: |
cd /app/book
make -j -O serif ebook website
- name: Upload book artifacts to GitHub
uses: actions/upload-artifact@v4
with:
name: books
path: |
book/book_serif/book.log
book/book_serif/book.pdf
book/book-epub/book.epub
- name: Upload website artifacts to GitHub
uses: actions/upload-artifact@v4
with:
name: website
path: website/static_website_html