From e2c870c7a98ecd4ce65d93b4e25e527f3e431a4e Mon Sep 17 00:00:00 2001 From: Benjamin Gilbert Date: Wed, 30 Oct 2024 16:13:42 -0700 Subject: [PATCH] workflows: omit *.publish.attestation files from release artifacts gh-action-pypi-publish now writes attestation files to the artifact directory that should not be uploaded to the GitHub release. Add explicit wildcards for the file extensions we do want to upload. Signed-off-by: Benjamin Gilbert --- .github/workflows/python.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml index 01274db..96ffb06 100644 --- a/.github/workflows/python.yml +++ b/.github/workflows/python.yml @@ -310,9 +310,11 @@ jobs: -e '/^## / {ok=1; next}' \ -e 'ok {print}' \ "openslide_python-$version/CHANGELOG.md" > changes + # create release; upload artifacts but not *.publish.attestation + # files created by gh-action-pypi-publish gh release create --latest --verify-tag \ --repo "${{ github.repository }}" \ --title "OpenSlide Python $version" \ --notes-file changes \ "${{ github.ref_name }}" \ - "${{ needs.pre-commit.outputs.dist-base }}/"* + "${{ needs.pre-commit.outputs.dist-base }}/"*.{tar.gz,tar.xz,whl}