Skip to content

preview: gaps blocking ucdavis/win's preview.yml migration (TinyTeX/multi-format render, post-render hooks) #256

Description

@d-morrison

While migrating ucdavis/win to gha's reusable workflows (ucdavis/win#74), its bespoke preview.yml could not migrate to the preview/preview-deploy/cleanup-pr-previews family. Feature-by-feature diff (per CLAUDE.md's migration guidance) found these gaps:

  1. No TinyTeX / PDF support. preview.yml (reusable) has no tinytex input, unlike quarto-publish.yml. win renders PDF and DOCX outputs per chapter in its preview.
  2. No post-render hook. win runs several post-render steps between render and deploy: changed-chapter detection, HTML change highlighting (with a re-render after injecting preview metadata), DOCX tracked-changes generation, and a home-page banner (all repo-local .github/scripts/*.py). A generic "run this script after render, before the artifact upload" input (or documented extension point) would let win keep these while using the shared build/deploy plumbing.
  3. Label-driven behavior. win toggles highlighting off via a no-preview-highlights PR label and re-deploys on labeled/unlabeled events; the reusable preview family would need the label context forwarded (or at least not stripped) for that to keep working.

Per the migration rule, win's preview.yml migration is deferred (not hand-duplicated or feature-dropped) until these are closed or explicitly wontfixed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions