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 11
11
permissions :
12
12
contents : write
13
13
packages : write
14
+ id-token : write
15
+ attestations : write
14
16
15
17
jobs :
16
18
release :
@@ -37,13 +39,17 @@ jobs:
37
39
- name : build
38
40
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
39
41
42
+ - uses : actions/attest-build-provenance@520d128f165991a6c774bcb264f323e3d70747f4 # pin@v2
43
+ with :
44
+ subject-path : " ${{ env.GEM_NAME }}-${{ env.GEM_VERSION }}.gem"
45
+
40
46
- name : publish to GitHub packages
41
47
run : |
42
48
export OWNER=$( echo ${{ github.repository }} | cut -d "/" -f 1 )
43
49
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
44
50
45
51
- name : release
46
- uses : ncipollo/release-action@2c591bcc8ecdcd2db72b97d6147f871fcd833ba5 # pin@v1.14 .0
52
+ uses : ncipollo/release-action@cdcc88a9acf3ca41c16c37bb7d21b9ad48560d87 # pin@v1.15 .0
47
53
with :
48
54
artifacts : " ${{ env.GEM_NAME }}-${{ env.GEM_VERSION }}.gem"
49
55
tag : " v${{ env.GEM_VERSION }}"
You can’t perform that action at this time.
0 commit comments