File tree Expand file tree Collapse file tree 1 file changed +7
-10
lines changed
Expand file tree Collapse file tree 1 file changed +7
-10
lines changed Original file line number Diff line number Diff line change @@ -2,27 +2,24 @@ name: Release
22
33on :
44 push :
5- tags :
6- - v*
5+ branches : [ main ]
76 workflow_dispatch :
87
98permissions :
10- contents : read
9+ contents : write
1110 id-token : write
1211
1312jobs :
1413 release :
1514 runs-on : ubuntu-latest
1615 steps :
1716 - uses : actions/checkout@v5
17+ with :
18+ fetch-depth : 0
1819 - name : Set up Ruby
1920 uses : ruby/setup-ruby@v1
2021 with :
2122 ruby-version : ' 3.4'
22- bundler-cache : false
23- - name : Configure RubyGems credentials (OIDC)
24- uses : rubygems/configure-rubygems-credentials@v1.0.0
25- - name : Build gem
26- run : gem build *.gemspec
27- - name : Push gem
28- run : gem push *.gem
23+ bundler-cache : true
24+ - name : Publish to RubyGems (trusted publishing)
25+ uses : rubygems/release-gem@v1.1.1
You can’t perform that action at this time.
0 commit comments