Skip to content

Commit ed7d5fd

Browse files
authored
Merge branch 'main' into dependabot/bundler/rubocop-rails-2.30.2
2 parents 0ab8d39 + 8d1d5d9 commit ed7d5fd

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/release.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ on:
1111
permissions:
1212
contents: write
1313
packages: write
14+
id-token: write
15+
attestations: write
1416

1517
jobs:
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 }}"

0 commit comments

Comments
 (0)