Repository navigation
ci: upload one copy of each release asset (fix duplicate-name publish failure) - #20
Merged
Merged
Conversation
… 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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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-releasewithfiles: 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.shcheck 11), and the same change is applied across the series.Testing:
🤖 Generated with Claude Code