Skip to content

Commit 2bbdce7

Browse files
skilledwolfclaude
andcommitted
fix(ci): publish from an isolated dist/ dir to avoid the action's .github helper
gh-action-pypi-publish drops a .github/.tmp/ helper into the workspace, so packages_dir='.' made its hash step crash with IsADirectoryError on that dir (the v1.1.0 publish failed here; nothing reached PyPI). Download wheels into dist/ and point packages-dir there; add skip-existing for safe retries. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent 02976d2 commit 2bbdce7

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

.github/workflows/wheels.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,9 +144,13 @@ jobs:
144144
with:
145145
pattern: wheels-*
146146
merge-multiple: true
147+
path: dist
147148

148149
- name: Publish to PyPI (via OIDC)
149150
if: startsWith(github.ref, 'refs/tags/v')
150151
uses: pypa/gh-action-pypi-publish@release/v1
151152
with:
152-
packages_dir: .
153+
# Isolate wheels in dist/: the action drops a .github/.tmp helper in the
154+
# workspace, so packages-dir="." made its hash step choke on that dir.
155+
packages-dir: dist
156+
skip-existing: true

0 commit comments

Comments
 (0)