diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 560fecbf5..fc17c4806 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -21,6 +21,10 @@ jobs: needs: [build_dist] runs-on: ubuntu-latest if: github.event_name == 'release' && github.event.action == 'published' + permissions: + id-token: write + attestations: write + contents: read steps: - uses: actions/download-artifact@v4 @@ -31,6 +35,11 @@ jobs: - name: List distributions to be deployed run: ls -lha dist/ + - name: Generate artifact attestation for sdist and wheel + uses: actions/attest-build-provenance@173725a1209d09b31f9d30a3890cf2757ebbff0d # v1.1.2 + with: + subject-path: dist/uproot-* + - uses: pypa/gh-action-pypi-publish@release/v1 with: password: ${{ secrets.pypi_password }}