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:
- 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.
- 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.
- 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.
While migrating ucdavis/win to gha's reusable workflows (ucdavis/win#74), its bespoke
preview.ymlcould not migrate to thepreview/preview-deploy/cleanup-pr-previewsfamily. Feature-by-feature diff (per CLAUDE.md's migration guidance) found these gaps:preview.yml(reusable) has notinytexinput, unlikequarto-publish.yml. win renders PDF and DOCX outputs per chapter in its preview..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.no-preview-highlightsPR label and re-deploys onlabeled/unlabeledevents; 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.ymlmigration is deferred (not hand-duplicated or feature-dropped) until these are closed or explicitly wontfixed.