Skip to content

Commit a325466

Browse files
authored
fix: upload dist artifact before signing to avoid .pem/.sig in PyPI publish (#18)
Move upload-artifact step to right after build, before Cosign signing adds .sig and .pem files to dist/. The PyPI publish action only accepts valid Python distributions (.whl, .tar.gz). Signed-off-by: Igor Racic <iracic82@gmail.com>
1 parent fe3bc99 commit a325466

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

.github/workflows/release.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,12 @@ jobs:
3030
- name: Build wheel and sdist
3131
run: python -m build
3232

33+
- name: Upload dist artifacts
34+
uses: actions/upload-artifact@v4
35+
with:
36+
name: dist
37+
path: dist/
38+
3339
- name: Install package for SBOM
3440
run: pip install dist/*.whl
3541

@@ -61,12 +67,6 @@ jobs:
6167
sbom.json.sig
6268
sbom.json.pem
6369
64-
- name: Upload dist artifacts
65-
uses: actions/upload-artifact@v4
66-
with:
67-
name: dist
68-
path: dist/
69-
7070
publish-to-pypi:
7171
name: Publish to PyPI
7272
needs: build

0 commit comments

Comments
 (0)