Skip to content

ci: attach demo files to release directly instead of zipping#34

Merged
a-essawy merged 1 commit into
mainfrom
ci/demos-release-attach-no-zip
Jun 2, 2026
Merged

ci: attach demo files to release directly instead of zipping#34
a-essawy merged 1 commit into
mainfrom
ci/demos-release-attach-no-zip

Conversation

@a-essawy
Copy link
Copy Markdown
Contributor

@a-essawy a-essawy commented Jun 2, 2026

Problem

The demos workflow fails on tag builds:

/__w/_temp/...sh: 2: zip: not found
Error: Process completed with exit code 127.

The Bundle for release step runs cd demos/out && zip -r ../../demos.zip . inside the VHS container (ghcr.io/charmbracelet/vhs:v0.11.0). That image's final stage is debian:stable-slim, which ships no zip binary — hence exit 127. The step only runs on v* tags, so it stayed hidden until the first tagged release.

Fix

Drop the zip step entirely and attach the rendered media straight to the GitHub Release via softprops/action-gh-release's files: list.

demos/out/ after render is exactly three files — hero.gif (tracked), hero.mp4 + hero.webm (gitignored, regenerated). Bundling three files into an archive nobody can preview added no value. Direct attach:

  • removes the root cause (no zip dependency)
  • adds zero new deps — no apt-get install + debian-mirror round-trip on every tag
  • hero.gif now previews inline on the release page; mp4/webm download as-is

Alternative considered

apt-get update && apt-get install -y zip (root user, so no sudo) would keep a single demos.zip. Rejected: a network install on every release to bundle 3 previewable files is strictly worse than attaching them directly.

Test plan

  • Cut a v* tag (or re-run the failed release) and confirm the Attach to release step uploads all three assets.
  • YAML committed verbatim, byte-verified on branch.

The vhs container (debian:stable-slim) ships no zip binary, so the
Bundle-for-release step failed with exit 127 on tag builds. Drop the
zip step and attach hero.{gif,mp4,webm} straight to the release via
softprops/action-gh-release -- zero new dependency, and hero.gif now
previews inline on the release page.
@a-essawy a-essawy merged commit 73b7db4 into main Jun 2, 2026
2 checks passed
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.

1 participant