File tree 1 file changed +46
-0
lines changed
1 file changed +46
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Publish gem to rubygems.org
2
+
3
+ on :
4
+ push :
5
+ tags :
6
+ - ' v*'
7
+
8
+ permissions :
9
+ contents : read
10
+
11
+ jobs :
12
+ push :
13
+ if : github.repository == 'ruby/webrick'
14
+ runs-on : ubuntu-latest
15
+
16
+ environment :
17
+ name : rubygems.org
18
+ url : https://rubygems.org/gems/webrick
19
+
20
+ permissions :
21
+ contents : write
22
+ id-token : write
23
+
24
+ steps :
25
+ - name : Harden Runner
26
+ uses : step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1
27
+ with :
28
+ egress-policy : audit
29
+
30
+ - uses : actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
31
+
32
+ - name : Set up Ruby
33
+ uses : ruby/setup-ruby@a6e6f86333f0a2523ece813039b8b4be04560854 # v1.190.0
34
+ with :
35
+ bundler-cache : true
36
+ ruby-version : ruby
37
+
38
+ - name : Publish to RubyGems
39
+ uses : rubygems/release-gem@612653d273a73bdae1df8453e090060bb4db5f31 # v1
40
+
41
+ - name : Create GitHub release
42
+ run : |
43
+ tag_name="$(git describe --tags --abbrev=0)"
44
+ gh release create "${tag_name}" --verify-tag --generate-notes
45
+ env :
46
+ GITHUB_TOKEN : ${{ secrets.MATZBOT_GITHUB_WORKFLOW_TOKEN }}
You can’t perform that action at this time.
0 commit comments