ci: Disable attestation step if nothing's been built

This commit is contained in:
Chris Hennick 2024-05-21 12:13:17 -07:00
parent fdc39352aa
commit 7d7e4256bd
No known key found for this signature in database
GPG key ID: DA47AABA4961C509

View file

@ -30,5 +30,6 @@ jobs:
GITHUB_TOKEN: ${{ secrets.RELEASE_PLZ_PAT }}
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
- uses: actions/attest-build-provenance@v1
if: ${{ steps.release-plz.outputs.releases_created }}
with:
subject-path: ${{ github.workspace }}/target/release/libzip.rlib