Skip to content

ci: upload one copy of each release asset (fix duplicate-name publish failure) - #20

Merged
sws-chipkin merged 1 commit into
mainfrom
fix-release-asset-collision
Sep 24, 2026
Merged

sws-chipkin merged 1 commit into
mainfrom
fix-release-asset-collision

Conversation

@sws-chipkin

Copy link
Copy Markdown
Collaborator

Fixes the publish-job failure that left v1.1.18 of BACnetProfileExample-B-SCHUB-CPP as a draft release.

Cause: both platform artifacts carry the same docs (README.md, LICENSE, TUTORIAL.md, ...). The publish job passed all of them to softprops/action-gh-release with files: artifacts/**/*, so every one of those names was uploaded twice. The action then failed part-way ("Not Found" updating asset metadata).

Fix: a new step flattens the downloaded artifacts into release/, keeping one copy of each file name. If two files share a name but differ, the job fails with a clear message instead of publishing the wrong one. The release job only changes the upload list (files: release/*), and the asset set is the same as before, with each name once.

This release job is a shared series template (tools/check-series.sh check 11), and the same change is applied across the series.

Testing:

  • Ran the step locally against the real v1.1.18 artifact layout: it produced exactly the 10 assets the published release has.
  • A same-name conflict fails as intended.
  • The YAML parses.
  • The publish job only runs on tags, so the next tagged release is its first live run.

🤖 Generated with Claude Code

… failure)

Every platform artifact carries the same docs (README.md, LICENSE,
TUTORIAL.md, ...), and the publish job handed all of them to
softprops/action-gh-release with `files: artifacts/**/*`. Uploading two
assets with the same name makes the action fail part-way ("Not Found"
updating asset metadata) and leaves a draft release behind -
BACnetProfileExample-B-SCHUB-CPP v1.1.18 hit exactly this.

The publish job now flattens the downloaded artifacts into release/,
keeping one copy of each file name, and fails loudly if two files share
a name but differ. Same asset set as before, each name once. Applied
series-wide (the release job is a shared template, checked by
tools/check-series.sh check 11).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@sws-chipkin
sws-chipkin merged commit c57336d into main Sep 24, 2026
3 checks passed
@sws-chipkin
sws-chipkin deleted the fix-release-asset-collision branch October 16, 2026 16:21
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