From 5eca544e66c8405de4d02fad50c86a5d32f38c1d Mon Sep 17 00:00:00 2001 From: DK96-OS <69859316+DK96-OS@users.noreply.github.com> Date: Fri, 19 Apr 2024 10:45:28 -0400 Subject: [PATCH] Debug Publishing (#7) Publishing: * Update publish.yml - add step to clean up the dist directory before upload --- .github/workflows/publish.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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: