Skip to content

Commit 1bd3274

Browse files
committed
ci: cleanup stashed SHA256 checksum before publish to PyPI
1 parent 230188c commit 1bd3274

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/publish.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,13 @@ jobs:
9898
name: dist
9999
path: dist
100100

101+
# The PyPI publishing action will try to publish this checksum file as if
102+
# it was a Python package if it remains in dist, so we clean it up first.
103+
- name: Cleanup SHA256SUMS
104+
run: |
105+
cat dist/SHA256SUMS
106+
rm dist/SHA256SUMS
107+
101108
- name: Publish to PyPI
102109
if: startsWith(github.ref, 'refs/tags')
103110
uses: pypa/gh-action-pypi-publish@v1.8.5

0 commit comments

Comments
 (0)