mirror of
https://github.com/harvard-edge/cs249r_book.git
synced 2026-05-07 02:03:55 -05:00
[PR #1411] [MERGED] fix(book-publish): bump version in BOTH per-volume index files #9083
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/harvard-edge/cs249r_book/pull/1411
Author: @profvjreddi
Created: 4/19/2026
Status: ✅ Merged
Merged: 4/20/2026
Merged by: @profvjreddi
Base:
dev← Head:release-prep/book-version-bump-bothfiles📝 Commits (1)
db6c161fix(book-publish): bump version in BOTH per-volume index files📊 Changes
1 file changed (+34 additions, -18 deletions)
View changed files
📝
.github/workflows/book-publish-live.yml(+34 -18)📄 Description
Summary
PR-6 (#1410) routed each volume's
/book/vol{N}/URL to a new project-rootindex-vol{N}.qmd. TheUpdate per-volume version in index.qmdstep inbook-publish-live.ymlwas written before that change and still only sed-updatescontents/vol{N}/index.qmd. After the next book publish:contents/vol1/index.qmd→doi: \"v0.6.0\"✅ (deep page)index-vol1.qmd→doi: \"v0.5.1\"❌ (the actual public welcome page at/book/vol1/)So readers would see the old version on the page they actually land on. This PR fixes that.
Change
bump_volume_doi <bare-version> <file...>helper.index-vol{N}.qmd(project root, public welcome)contents/vol{N}/index.qmd(sidebar Volume home)sedpattern, same commit message, sameUPDATED_FILESgating, same downstream merge-to-main step.How this came up
While answering "didn't the publish-live workflow handle the version bump automatically?" during TinyTorch v0.10.0 release prep. The TinyTorch workflow does fully automate the bump and PR-4's manual pre-bump was redundant (safe with
explicit_version=0.10.0, but redundant). That led to checking the parallel book workflow and noticing this gap PR-6 had silently introduced.Test plan
yamllint/ GitHub Actions parser)new_vol1_versionupdates both files and the resulting commit message lists bothindex-vol1.qmdever gets removed/renamed, publish proceeds (warns instead of failing)Risk
Trivial. One step, additive logic, defensive on missing files.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.