Skip to content

Commit 5eca544

Browse files
authored
Debug Publishing (#7)
Publishing: * Update publish.yml - add step to clean up the dist directory before upload
1 parent 3876a16 commit 5eca544

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/publish.yml

+12
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,18 @@ jobs:
4040
./dist/*.tar.gz
4141
./dist/*.whl
4242
43+
- name: Cleanup Dist Directory after signing
44+
run: |
45+
cd dist
46+
echo "Removing files that do not match '*.tar.gz' or '*.whl'"
47+
for file in *; do
48+
if [[ ! "$file" == *".tar.gz" ]] && [[ ! "$file" == *".whl" ]]; then
49+
echo "Removing: $file"
50+
rm "$file"
51+
fi
52+
done
53+
cd ../
54+
4355
- name: Publish package distributions to PyPI
4456
uses: pypa/gh-action-pypi-publish@release/v1
4557
with:

0 commit comments

Comments
 (0)