File tree Expand file tree Collapse file tree 1 file changed +15
-1
lines changed
Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change 2020
2121permissions :
2222 contents : write
23+ id-token : write
24+ attestations : write
2325
2426on :
2527 push :
@@ -94,12 +96,24 @@ jobs:
9496 perl -00 -lne 'next unless /\A\d+\.\d+(_\d+)?/; print; last' Changes > Changes-latest
9597 cat Changes-latest
9698 id : extract
99+ # https://cli.github.com/manual/gh_attestation_verify
100+ # DISTRO_FILE is the .tar.gz in the release
101+ # GITHUB_ACCOUNT is the github name of the releaser
102+ # gh auth login
103+ # gh attestation verify DISTRO_FILE --owner GITHUB_ACCOUNT
104+ - name : Generate artifact attestation
105+ id : attestation
106+ uses : actions/attest-build-provenance@v1
107+ with :
108+ subject-path : ${{ env.ASSET_NAME }}
97109 - name : upload
98110 uses : softprops/action-gh-release@v1
99111 with :
100112 body_path : Changes-latest
101113 draft : false
102114 prerelease : false
103115 name : ${{ steps.version.outputs.name }}
104- files : " *.tar.gz"
116+ files : |
117+ ${{ env.ASSET_NAME }}
118+ ${{ steps.attestation.outputs.bundle-path }}
105119 token : ${{ secrets.RELEASE_ACTION_TOKEN }}
You can’t perform that action at this time.
0 commit comments