Skip to content

Commit 3c22936

Browse files
committed
update release workflow to publish ruby gem automatically
1 parent 7f83b93 commit 3c22936

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/github-release.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ on:
88
jobs:
99
Publish:
1010
permissions:
11+
id-token: write
1112
contents: write
1213
runs-on: ubuntu-latest
1314
if: startsWith(github.ref, 'refs/tags/v')
@@ -26,3 +27,12 @@ jobs:
2627
release_name: ${{ env.RELEASE_NAME }}
2728
draft: false
2829
prerelease: false
30+
- uses: actions/checkout@v5
31+
with:
32+
persist-credentials: false
33+
- name: Set up Ruby
34+
uses: ruby/setup-ruby@09a7688d3b55cf0e976497ff046b70949eeaccfd
35+
with:
36+
bundler-cache: true
37+
ruby-version: ruby
38+
- uses: rubygems/release-gem@v1

0 commit comments

Comments
 (0)