Files
the-sourdough-framework/.github/workflows/test-book-website.yml
Workflow config file is invalid. Please check your config file: yaml: line 3: mapping values are not allowed in this context
Cedric fc0fb708a8 Do not run test-book-website on main push
This makes little sense to run it again.. we already did run twice on
branch push and for the PR request.  And we will run the exact same
thing and more (sans-serif, actual release etc) in release-book-website.
2024-12-28 16:43:13 +00:00

53 lines
1.5 KiB
YAML

name: Test book and website for given image
on: [push, pull_request]:
branches-ignore:
- main
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 build_serif_pdf build_ebook 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