Commit fe5b818
fix(ci): clean stale dist artifacts before semantic-release publish
The release job restored a cached ./dist from the build job (built with
the pre-bump version) and then semantic-release-pypi rebuilt the package
with the new version into the same directory. Twine then attempted to
upload both versions; PyPI rejected the older (deleted) filename and the
whole upload aborted, leaving the new version unpublished.
Wipe ./dist after restoring the cache and before semantic-release runs,
so semantic-release-pypi builds and uploads only the current version.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 8c0abaf commit fe5b818
1 file changed
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
84 | 87 | | |
85 | 88 | | |
86 | 89 | | |
| |||
0 commit comments