Skip to content

Commit e2c870c

Browse files
committed
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 <[email protected]>
1 parent d4c4f98 commit e2c870c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/python.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,9 +310,11 @@ jobs:
310310
-e '/^## / {ok=1; next}' \
311311
-e 'ok {print}' \
312312
"openslide_python-$version/CHANGELOG.md" > changes
313+
# create release; upload artifacts but not *.publish.attestation
314+
# files created by gh-action-pypi-publish
313315
gh release create --latest --verify-tag \
314316
--repo "${{ github.repository }}" \
315317
--title "OpenSlide Python $version" \
316318
--notes-file changes \
317319
"${{ github.ref_name }}" \
318-
"${{ needs.pre-commit.outputs.dist-base }}/"*
320+
"${{ needs.pre-commit.outputs.dist-base }}/"*.{tar.gz,tar.xz,whl}

0 commit comments

Comments
 (0)