Skip to content

ci: allow release build via workflow_dispatch#18

Merged
us merged 1 commit into
mainfrom
ci/release-workflow-dispatch
Jun 12, 2026
Merged

ci: allow release build via workflow_dispatch#18
us merged 1 commit into
mainfrom
ci/release-workflow-dispatch

Conversation

@us

@us us commented Jun 12, 2026

Copy link
Copy Markdown
Owner

Problem

The Release workflow (release.yml) only triggers on push: tags: v*. Since the switch to release-please (v0.2.1+), tags are created with the default GITHUB_TOKEN, which does not trigger downstream workflows. Consequently no macOS binary tarball or Homebrew formula update has been published since v0.2.0brew install mocker is stale.

Fix

  • Add workflow_dispatch with a tag input.
  • Use ${{ inputs.tag || github.ref_name }} for the checkout ref, the VERSION/tarball name, and the softprops/action-gh-release tag_name.

This lets any tag be (re)built and published manually — including back-filling v0.3.2 — while keeping the automatic tag-push trigger intact.

After merge

Dispatch for v0.3.2: gh workflow run release.yml -f tag=v0.3.2

The Release workflow only triggered on `push: tags`, but release-please
creates tags with the default GITHUB_TOKEN, which does not trigger
downstream workflows. As a result no binary/Homebrew formula has been
published since v0.2.0. Add a workflow_dispatch input (tag) and use it
for checkout ref, version, and the release upload target so any tag can
be (re)built manually.
@us us merged commit 46d3858 into main Jun 12, 2026
1 check 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