Skip to content

ci: publish student and terse as the latest release, drop publish-book.sh - #33

Merged
arademaker merged 8 commits into
mainfrom
ci/publish-book
Sep 27, 2026
Merged

arademaker merged 8 commits into
mainfrom
ci/publish-book

Conversation

@arademaker

@arademaker arademaker commented Sep 27, 2026 •

Copy link
Copy Markdown
Member

Part of #18.

  • pages.yml builds the terse variant besides student, and this repository's Pages now serves terse, the lecture cut used in class.
  • The moving release is renamed latest (the old student-latest is deleted by the workflow). It carries student-{lean,html}.tar.gz, terse-{lean,html}.tar.gz and commit.txt, the CSwL commit they were built from. solutions and grading are not published.
  • scripts/publish-book.sh and make publish-book go.
  • make lecture copies the terse Lake project to ../lecture (or LECTURE=<dir>), a local git repository outside CSwL that is never published, and builds it, for the instructor to open in VS Code in class. It refuses to overwrite uncommitted changes.
  • The pull-request CI (lean_action_ci.yml) restores the Lake cache that pages.yml saves on main, which holds the compiled C objects of Mathlib that linking the executables needs, and no longer saves a cache per pull request, which evicted the one on main under the 10 GB limit.

AI-usage disclosure: the workflow and the target were drafted with the assistance of Claude Opus 5.5 (Anthropic, September 2026, via Claude Code). The author reviewed the changes and takes full responsibility for the final content.

…k.sh

Build the terse variant too, publish it to this repo's Pages, and
publish both variants as the `latest` release, one
`<variant>-{lean,html}.tar.gz` each plus `commit.txt`. The book
repository syncs itself from that release, so the local
publish-book.sh and its Makefile target go.

Refs #18

--
AI-usage disclosure: the workflow was drafted with the assistance of
Claude Opus 5.5 (Anthropic, September 2026, via Claude Code). The author
reviewed the changes and takes full responsibility for the final content.
Copilot AI lite review requested due to automatic review settings September 27, 2026 16:41

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟡 Changes recommended

Resolve artifact completeness, tag-target consistency, and non-atomic latest release publication concerns.

Review effort: Lite
Findings: 1 Medium severity

Open (1)
What changed in this PR

Moves book publication into CI, serving terse on Pages and publishing student/terse artifacts in the latest release.

Changes:

  • Builds and packages both variants.
  • Publishes Lean/HTML archives and commit metadata.
  • Removes the obsolete local publishing script and Make target.
File Description
scripts/​publish-book.sh Removes local repository synchronization.
Makefile Removes the obsolete publishing target.
.github/​workflows/​pages.yml Builds, deploys, and publishes book variants.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread .github/workflows/pages.yml
Copy the terse Lake project to a local working directory outside the
repository, `../aula` by default, and build it. The directory is its
own git repository and is never published, so what is written in
class can be committed there; the target refuses to overwrite
uncommitted changes.

Refs #18

--
AI-usage disclosure: the target was drafted with the assistance of
Claude Opus 5.5 (Anthropic, September 2026, via Claude Code). The author
reviewed the changes and takes full responsibility for the final content.
actions/upload-artifact@v4 leaves hidden files out by default, so the
`.gitignore` that keeps `.lake/` out of the students' commits never
reached the release.

--
AI-usage disclosure: the fix was drafted with the assistance of
Claude Opus 5.5 (Anthropic, September 2026, via Claude Code). The author
reviewed the changes and takes full responsibility for the final content.
Drop the references to a particular course's repositories from the
Pages workflow comments and from CLAUDE.md, which now states the rule,
and point the doc-gen4 note at this repository's issue.

--
AI-usage disclosure: the change was drafted with the assistance of
Claude Opus 5.5 (Anthropic, September 2026, via Claude Code). The author
reviewed the changes and takes full responsibility for the final content.
Mathlib's cache has no compiled C objects, so linking the executables
compiled every Mathlib module from scratch whenever the pull request
had no cache of its own. Restore the cache of `main` instead, which
has them, and do not save one per pull request: at a few gigabytes
each against the 10 GB limit, they evicted the one on `main`.

--
AI-usage disclosure: the workflow was drafted with the assistance of
Claude Opus 5.5 (Anthropic, September 2026, via Claude Code). The author
reviewed the changes and takes full responsibility for the final content.
--
AI-usage disclosure: the change was made with the assistance of
Claude Opus 5.5 (Anthropic, September 2026, via Claude Code). The author
reviewed it and takes full responsibility for the final content.
--
AI-usage disclosure: the text was drafted with the assistance of
Claude Opus 5.5 (Anthropic, September 2026, via Claude Code). The author
reviewed it and takes full responsibility for the final content.
GitHub is deprecating Node.js 20 on its runners.

--
AI-usage disclosure: the change was made with the assistance of
Claude Opus 5.5 (Anthropic, September 2026, via Claude Code). The author
reviewed it and takes full responsibility for the final content.
@arademaker
arademaker merged commit b088a1a into main Sep 27, 2026
1 check passed
@arademaker
arademaker deleted the ci/publish-book branch September 27, 2026 18:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants