File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 1111permissions :
1212 contents : write
1313 packages : write
14+ id-token : write
15+ attestations : write
1416
1517jobs :
1618 release :
@@ -37,13 +39,17 @@ jobs:
3739 - name : build
3840 run : echo "GEM_VERSION=$(gem build ${{ env.GEM_NAME }}.gemspec 2>&1 | grep Version | cut -d':' -f 2 | tr -d " \t\n\r")" >> $GITHUB_ENV
3941
42+ - uses : actions/attest-build-provenance@520d128f165991a6c774bcb264f323e3d70747f4 # pin@v2
43+ with :
44+ subject-path : " ${{ env.GEM_NAME }}-${{ env.GEM_VERSION }}.gem"
45+
4046 - name : publish to GitHub packages
4147 run : |
4248 export OWNER=$( echo ${{ github.repository }} | cut -d "/" -f 1 )
4349 GEM_HOST_API_KEY=${{ secrets.GITHUB_TOKEN }} gem push --KEY github --host https://rubygems.pkg.github.com/${OWNER} ${{ env.GEM_NAME }}-${{ env.GEM_VERSION }}.gem
4450
4551 - name : release
46- uses : ncipollo/release-action@2c591bcc8ecdcd2db72b97d6147f871fcd833ba5 # pin@v1.14 .0
52+ uses : ncipollo/release-action@440c8c1cb0ed28b9f43e4d1d670870f059653174 # pin@v1.16 .0
4753 with :
4854 artifacts : " ${{ env.GEM_NAME }}-${{ env.GEM_VERSION }}.gem"
4955 tag : " v${{ env.GEM_VERSION }}"
You can’t perform that action at this time.
0 commit comments