File tree 1 file changed +22
-5
lines changed
1 file changed +22
-5
lines changed Original file line number Diff line number Diff line change 1
- name : Publish gem
2
- on : workflow_dispatch
1
+ name : Publish Gem
2
+ on :
3
+ workflow_dispatch :
4
+ inputs :
5
+ version :
6
+ description : " Version"
7
+ required : true
8
+ type : string
3
9
4
10
jobs :
5
11
push :
6
- name : Publish gem to RubyGems.org
7
12
runs-on : ubuntu-latest
8
13
9
14
permissions :
10
- id-token : write # IMPORTANT: this permission is mandatory for trusted publishing
11
- contents : write # IMPORTANT: this permission is required for `rake release` to push the release tag
15
+ contents : write
16
+ id-token : write
12
17
13
18
steps :
14
19
# Set up
19
24
bundler-cache : true
20
25
ruby-version : ruby
21
26
27
+ - name : Update version
28
+ run : |
29
+ sed -i 's/".*"/"${{ inputs.version }}"/' lib/noticed/version.rb
30
+ bundle config set frozen false
31
+ bundle
32
+ bundle exec appraisal
33
+ git config user.name 'GitHub Actions'
34
+ git config user.email [email protected]
35
+ git add Gemfile.lock gemfiles lib
36
+ git commit -m "Version bump"
37
+ git push
38
+
22
39
# Release
23
40
- uses : rubygems/release-gem@v1
You can’t perform that action at this time.
0 commit comments