diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 6b01fdf..1d7bfb6 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -40,6 +40,18 @@ jobs: ./dist/*.tar.gz ./dist/*.whl + - name: Cleanup Dist Directory after signing + run: | + cd dist + echo "Removing files that do not match '*.tar.gz' or '*.whl'" + for file in *; do + if [[ ! "$file" == *".tar.gz" ]] && [[ ! "$file" == *".whl" ]]; then + echo "Removing: $file" + rm "$file" + fi + done + cd ../ + - name: Publish package distributions to PyPI uses: pypa/gh-action-pypi-publish@release/v1 with: