You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
publish-gh-pages: attach the site to a release in another repository (release-repository, release-tag) #354
QuantEcon/lectures will publish each site through a release in its series' repository (QuantEcon/project-monorepo#78). The monorepo builds the site and, with a token from the quantecon-lectures App, creates the tag and release in the series' repository; the series' deploy workflow then serves that release (#355). Matt approved this design on 2026-11-26, relayed by the organiser session, as "Approve, with the refinements". The refinements are the points below.
Today mode: release can only attach the site to the release of the tag that triggered the run, in the repository the run is in (GITHUB_REPOSITORY, GITHUB_REF_NAME). The archive, checksum and manifest it writes are what restore-gh-pages reads, and the monorepo needs exactly that format in the other repository.
Proposed: two inputs for mode: release, both empty by default (today's behaviour).
release-repository (owner/repo) and release-tag (such as publish-2026-11-27).
Checks first. Either input with any mode other than release fails before anything runs. Both are validated as restore-gh-pages validates its tag and an owner/repo, and passed to the scripts through env:.
The tag guard. With release-tag set, the "this run was not triggered by a tag" guard is skipped.
The release. The step creates the tag and the release in release-repository at that repository's default-branch head. It fails if the tag already exists there; a same-day re-publish takes the next letter (publish-2026-11-27b).
The asset names.asset-name defaults from the target repository's name (lecture-dp-html), so restore-gh-pages finds the archive as it finds a series' own.
The manifest. Its commit stays the run's GITHUB_SHA, the QuantEcon/lectures commit the site was built from.
The token is the caller's github-token. QuantEcon/lectures passes an App installation token scoped to the one target repository, with contents: write only.
The cross-repository release is proven on the canary or on QuantEcon/test-lecture-dp, the dp test double (QuantEcon/project-monorepo#27). One pull request, with the chapter, a harness job, a CHANGELOG entry and a staged release. I'll open it, and it goes through this repository's review.
Activity