Skip to content

Build Swift binary on release published, not created#28

Merged
paberr merged 1 commit into
mainfrom
fix/build-binary-trigger
Jun 2, 2026
Merged

Build Swift binary on release published, not created#28
paberr merged 1 commit into
mainfrom
fix/build-binary-trigger

Conversation

@paberr

@paberr paberr commented Jun 2, 2026

Copy link
Copy Markdown
Owner

Problem

build-binary.yml triggers on release: [created]. GitHub does not fire the created event when a release is published from a previously-saved draft — it only fires for releases "published without previously being saved as a draft."

As a result, the binary build was silently skipped for v0.12.0 (created as a draft, then published), while publish.yml (which listens on published) still ran and pushed to PyPI. The ownscribe-audio-arm64 asset was missing, so releases/latest/download/... 404'd for fresh installs.

Fix

Switch the trigger to published, which fires for both draft→publish and direct-publish flows. This makes the safer draft-first release ordering work correctly.

Notes

  • v0.12.0 has already had the binary uploaded manually as a one-off recovery.
  • Follow-up worth considering: add workflow_dispatch so the binary can be rebuilt without a new release, and build an x86_64 asset (the download URL supports it, but only arm64 is ever published).

The `created` release event does not fire when a release is published
from a previously-saved draft, so the binary build was silently skipped
for draft-first releases (e.g. v0.12.0) while the PyPI publish (which
listens on `published`) still ran. Switch to `published`, which fires
for both draft-publish and direct-publish flows.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings June 2, 2026 12:37

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Updates the release-triggered Swift binary build workflow so it runs when a release is published, ensuring binaries are built/uploaded for both draft→publish and direct-publish release flows (preventing missing releases/latest/download/... assets).

Changes:

  • Switch .github/workflows/build-binary.yml trigger from release.types: [created] to release.types: [published].

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@paberr paberr merged commit 5a5d501 into main Jun 2, 2026
3 checks passed
@paberr paberr deleted the fix/build-binary-trigger branch June 2, 2026 12:39
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