diff --git a/.github/workflows/publish-package.yml b/.github/workflows/publish-package.yml index c78711a..bc6624b 100644 --- a/.github/workflows/publish-package.yml +++ b/.github/workflows/publish-package.yml @@ -58,11 +58,8 @@ jobs: run: python -m zipfile --list dist/recast_atlas-*.whl - name: Generate artifact attestation for sdist and wheel - # If publishing to TestPyPI or PyPI - if: >- - (github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') && github.repository == 'recast-hep/recast-atlas') - || (github.event_name == 'workflow_dispatch' && github.event.inputs.publish == 'true' && github.repository == 'recast-hep/recast-atlas') - || (github.event_name == 'release' && github.event.action == 'published' && github.repository == 'recast-hep/recast-atlas') + # If publishing to PyPI + if: github.event_name == 'release' && github.event.action == 'published' && github.repository == 'recast-hep/recast-atlas' uses: actions/attest-build-provenance@534b352d658f90498fd148d231fdbf88f3886a3a # v1.3.1 with: subject-path: "dist/recast_atlas-*"