File tree Expand file tree Collapse file tree 1 file changed +15
-13
lines changed Expand file tree Collapse file tree 1 file changed +15
-13
lines changed Original file line number Diff line number Diff line change 5
5
types : [created]
6
6
7
7
jobs :
8
- push :
9
- name : Push gem to RubyGems.org
8
+ build :
9
+ name : Build + Publish
10
10
runs-on : ubuntu-latest
11
-
12
11
permissions :
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
12
+ contents : read
13
+ packages : write
15
14
16
15
steps :
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
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'
23
21
24
- # Release
25
- - uses : rubygems/release-gem@v1
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 }}
You can’t perform that action at this time.
0 commit comments