Skip to content

deploy-release: push the release's notebooks to a series' companion repository, in a job of its own #356

Backlog

Description

@mmcky

The follow-up to #355, as agreed with this repository's maintainers: the deploy-release workflow's first release deploys and rolls back, but doesn't yet push the notebooks.

What. A series that serves its notebooks to Colab keeps a companion repository, such as QuantEcon/lecture-python.notebooks, and its own publish pushes the built notebooks there today. Once the series is published through releases (QuantEcon/project-monorepo#78), the release's archive holds _notebooks/, and the push belongs beside the deploy.

The conditions, from the design Matt approved on 2026-11-26 ("Approve, with the refinements", relayed by the organiser session):

  • the push runs in a job of its own, never in the Pages job;
  • with a secret of its own, declared by name in on.workflow_call.secrets and passed by name (never secrets: inherit);
  • it is optional: a series with no companion repository passes no repository and no secret.

Why it waits. The series push in two ways today. intro and advanced replace the companion repository's contents, so a retired lecture's notebook goes. programming, intermediate and jax copy the notebooks over it and delete nothing. Which of the two the shared job does is an open question for Matt, part of his tidy-up of the companion repositories (QuantEcon/project-monorepo#143 records the longer-term idea of a single notebooks repository). Once he has settled it, this job follows in a pull request of its own, with its chapter and a canary proof.

🤖 Generated with Claude Code

Activity

  1. added
    enhancement
    on Nov 26, 2026
  2. mmcky commented on Nov 28, 2026

    @mmcky
    ContributorAuthor

    The owner's ruling, 2026-11-28 (AEDT), recorded from the project-monorepo session. Asked whether a release's push of a site's notebooks to its companion .notebooks repository should mirror or copy, Matt chose: "Mirror, every site (Recommended)".

    What that means for this job:

    • Mirror. The job replaces the companion repository's contents with the release's notebooks, as intro and advanced do today. A retired lecture's notebook goes with the next release. Programming, intermediate and jax copy over the top today and delete nothing. They take the mirror at their cutovers, and their stale notebooks go then: 25 in lecture-python.notebooks, and lecture-jax.notebooks holds 47 notebooks for jax's 33 pages.
    • dp. In the same round Matt chose "Create it; fill at cutover (Recommended)". dp's Colab button points at QuantEcon/lecture-dp.notebooks, which doesn't exist yet. Matt creates it empty and public, and dp's releases fill it through this job from dp's cutover.

    So this issue no longer waits on a decision. The job follows in a pull request of its own, with its chapter and a canary proof, as the body says. It's written from the monorepo side and reviewed here, per the owner's "monorepo writes, actions reviews" of 2026-11-26. The conditions in the body are unchanged: a job of its own, a secret of its own passed by name, and optional for a series with no companion repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions