Skip to content

ci: rebuild dist artifacts on release-please PRs#77

Merged
vabatta merged 2 commits intomainfrom
ci/rebuild-dist-release
Mar 9, 2026
Merged

ci: rebuild dist artifacts on release-please PRs#77
vabatta merged 2 commits intomainfrom
ci/rebuild-dist-release

Conversation

@vabatta
Copy link
Contributor

@vabatta vabatta commented Mar 9, 2026

Summary

release-please bumps versions in source files (options.sh, docs/*.adoc) but dist/ artifacts (bundled binaries, manpages) are not rebuilt. This adds a rebuild-dist job to the CD workflow that detects release-please branches, rebuilds dist, and pushes the updated artifacts.

How it works

After the release-please job runs, the rebuild-dist job:

  1. Checks for active release-please branches for each component (cz, dotenv, jwt, theme) using git ls-remote.
  2. If any are found, installs Nix via cachix/install-nix-action.
  3. For each component with a release-please branch, checks out the branch, runs nix develop --command make build NAME=<component>, and pushes any dist changes.

This is safe against release-please force-pushes because the job runs sequentially after release-please (needs: release-please) and the workflow uses a concurrency group that prevents parallel runs.

Note on GITHUB_TOKEN

Pushes made with the default GITHUB_TOKEN will not re-trigger CI on the release-please PR. If CI validation of the rebuilt dist artifacts is needed, a GitHub App token would be required instead.

@vabatta vabatta merged commit ecb8949 into main Mar 9, 2026
1 check passed
@vabatta vabatta deleted the ci/rebuild-dist-release branch March 9, 2026 00:36
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