Skip to content

Commit 4076feb

Browse files
committed
fix: use separate dist_upload dir to avoid openapi folder
1 parent 3b831be commit 4076feb

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,11 +249,14 @@ jobs:
249249
if: success()
250250
run: |
251251
pip install build
252-
python -m build
252+
# Build to a clean directory to avoid non-package files
253+
mkdir -p dist_upload
254+
python -m build --outdir dist_upload
253255
254256
- name: Publish to PyPI (Trusted Publishing)
255257
if: success()
256258
uses: pypa/gh-action-pypi-publish@release/v1
257259
with:
260+
packages-dir: dist_upload/
258261
skip-existing: true
259262
verbose: true

0 commit comments

Comments
 (0)