mirror of
https://github.com/hendricius/the-sourdough-framework
synced 2025-11-30 14:53:59 -06:00
Names might have made sense at some point... but not so sure anymore build_pdf => pdf build_booklet => booklet build_serif_pdf => serif build_sans_serif_pdf => sans_serif build_ebook => ebook build_bw_ebook => bw_ebook build_low_res_ebook => low_res_ebook Old names kept not to break backward compatibility
57 lines
1.5 KiB
YAML
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
|
|
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
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: website
|
|
path: website/static_website_html
|