File tree Expand file tree Collapse file tree 1 file changed +13
-15
lines changed Expand file tree Collapse file tree 1 file changed +13
-15
lines changed Original file line number Diff line number Diff line change 5
5
types : [created]
6
6
7
7
jobs :
8
- build :
9
- name : Build + Publish
8
+ push :
9
+ name : Push gem to RubyGems.org
10
10
runs-on : ubuntu-latest
11
+
11
12
permissions :
12
- contents : read
13
- packages : write
13
+ id-token : write # IMPORTANT: this permission is mandatory for trusted publishing
14
+ contents : write # IMPORTANT: this permission is required for `rake release` to push the release tag
14
15
15
16
steps :
16
- - uses : actions/checkout@v3
17
- - name : Set up Ruby 2.7
18
- uses : ruby/setup-ruby@v1
19
- with :
20
- ruby-version : ' 2.7'
17
+ # Set up
18
+ - uses : actions/checkout@v4
19
+ - name : Set up Ruby
20
+ uses : ruby/setup-ruby@v1
21
+ with :
22
+ ruby-version : 2.7
21
23
22
- - name : Publish to RubyGems
23
- run : |
24
- gem build *.gemspec
25
- gem push *.gem
26
- env :
27
- GEM_HOST_API_KEY : ${{ secrets.RUBYGEMS_AUTH_TOKEN }}
24
+ # Release
25
+ - uses : rubygems/release-gem@v1
You can’t perform that action at this time.
0 commit comments