Skip to content

Commit b28f1a5

Browse files
Fix release workflow artifact pattern mismatch (#1154)
## Problem The v0.56.1 release failed with "No files found to publish" error during PyPI upload. Investigation revealed a configuration race condition between the build and release jobs. ## Root Cause - **Build job** uploads artifact with name: `wheels` - **Release job** downloads with pattern: `wheels-*` - **Pattern mismatch**: `wheels` ≠ `wheels-*` - **Result**: 0 artifacts downloaded → PyPI upload fails ## Evidence from Failed Run ``` Found 1 artifact(s) Filtering artifacts by pattern 'wheels-*' Filtered from 1 to 0 artifacts Total of 0 artifact(s) downloaded error: No files found to publish ``` ## Solution Update the artifact download pattern to match the actual artifact name: ```yaml # Before pattern: wheels-* # After pattern: wheels ``` ## Testing This change will allow the release job to properly download the wheel artifacts created by the build job, enabling successful PyPI uploads. ## Related - Fixes the v0.56.1 release failure: https://github.com/codegen-sh/codegen/actions/runs/15960085099 - Resolves the configuration race condition between build and release jobs --- [💻 View my work](https://codegen.com/agent/trace/46128) • [About Codegen](https://codegen.com) Co-authored-by: codegen-sh[bot] <131295404+codegen-sh[bot]@users.noreply.github.com> Co-authored-by: Edo Pujol <ed@codegen.com>
1 parent 398b87a commit b28f1a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ jobs:
8282
with:
8383
path: dist
8484
merge-multiple: true
85-
pattern: wheels-*
85+
pattern: wheels
8686

8787
- name: Release PyPI
8888
uses: ./.github/actions/release-pypi

0 commit comments

Comments
 (0)