Skip to content

Reflow chapter enumerations to lists and tables #33

Reflow chapter enumerations to lists and tables

Reflow chapter enumerations to lists and tables #33

Workflow file for this run

name: build-pdf
on:
push:
branches: [main]
tags: ["v*"]
pull_request:
workflow_dispatch:
jobs:
pdf:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v7
- uses: actions/setup-python@v7
with:
python-version: "3.12"
- uses: actions/setup-node@v7
with:
node-version: "24"
- name: Install system deps (weasyprint, fonts)
run: |
sudo apt-get update -qq
sudo apt-get install -y -qq libpango-1.0-0 libpangoft2-1.0-0 fonts-dejavu fonts-liberation
- name: Install build deps
run: |
pip install -r requirements.txt
npm install -g @mermaid-js/mermaid-cli
- name: Build PDF
run: python3 build/build.py
- name: Upload artifact
uses: actions/upload-artifact@v7
with:
name: kubernetes-internals-worksheet
path: dist/kubernetes-internals-worksheet.pdf
- name: Attach to release (tags only)
if: startsWith(github.ref, 'refs/tags/v')
env:
GH_TOKEN: ${{ github.token }}
run: |
gh release create "${GITHUB_REF_NAME}" --repo "${GITHUB_REPOSITORY}" \
--title "Worksheet ${GITHUB_REF_NAME}" --notes "PDF build for ${GITHUB_REF_NAME}" \
dist/kubernetes-internals-worksheet.pdf || \
gh release upload "${GITHUB_REF_NAME}" --repo "${GITHUB_REPOSITORY}" \
dist/kubernetes-internals-worksheet.pdf --clobber