Skip to content

Add automated e-book release workflow - #74

Merged
jposluns merged 1 commit into
mainfrom
claude/release-workflow
Jul 7, 2026
Merged

Add automated e-book release workflow#74
jposluns merged 1 commit into
mainfrom
claude/release-workflow

Conversation

@jposluns

@jposluns jposluns commented Jul 7, 2026

Copy link
Copy Markdown
Owner

Publishes the cookbook as a GitHub Release with BlimaCake.epub attached, so the release step no longer needs a manual upload.

What changed

  • .github/workflows/release.yml. Triggers on pushing a tag named cookbook-* (for example cookbook-2026-07) or from the Actions tab via workflow_dispatch (supply the tag). It rebuilds BlimaCake.epub from the current Markdown in the runner and attaches it to the release with softprops/action-gh-release@v2, so the released file always matches the recipes even if the committed root copy was not refreshed.
  • docs/about-this-archive.md. Updated the maintainer note to describe the workflow instead of the manual Releases-page steps.

Why a workflow (and not an MCP/API call)

GitHub uploads release binaries through a separate binary endpoint, which does not map onto the JSON-based GitHub tools this project uses, and the direct API/gh path is unavailable to the assistant here. Running the upload on a GitHub runner sidesteps both: the runner already has the file and the standard release action handles the binary upload.

Safety

  • Scoped contents: write permission (needed to create a release); nothing else is granted.
  • The existing validation gates are untouched; this is an additive workflow that only runs on tags / manual dispatch, not on PRs.
  • Deterministic build (uuid5 namespace id; requirements.txt provides PyYAML + Pillow). Verified locally: the exact build command produces a structurally valid EPUB (mimetype first and STORED, container.xml and package.opf present, 487 recipes).

🤖 Generated with Claude Code

https://claude.ai/code/session_01HpG2vky2XhDtfc6y16TRis


Generated by Claude Code

Publish BlimaCake.epub as a GitHub Release via
.github/workflows/release.yml: triggered by pushing a cookbook-* tag or by
manual workflow_dispatch with a tag input. The workflow rebuilds the EPUB
from the current Markdown (deterministic build) and attaches it, so the
released file always matches the recipes. Scoped contents: write; existing
validation gates untouched. Documented in docs/about-this-archive.md.

Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HpG2vky2XhDtfc6y16TRis
@jposluns
jposluns merged commit 1c80c48 into main Jul 7, 2026
4 checks passed
@jposluns
jposluns deleted the claude/release-workflow branch July 7, 2026 14:55
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