File tree Expand file tree Collapse file tree 1 file changed +43
-0
lines changed
Expand file tree Collapse file tree 1 file changed +43
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Release
2+
3+ on :
4+ workflow_dispatch :
5+
6+ jobs :
7+ push :
8+ name : Release gem on RubyGems.org
9+ if : github.repository == 'Shopify/rbi'
10+ runs-on : ubuntu-latest
11+
12+ permissions :
13+ contents : write
14+ id-token : write
15+
16+ environment : release
17+
18+ steps :
19+ - name : Checkout repository
20+ uses : actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
21+ with :
22+ persist-credentials : false
23+
24+ - name : Set up Ruby
25+ uses : ruby/setup-ruby@8aeb6ff8030dd539317f8e1769a044873b56ea71 # v1.268.0
26+ with :
27+ bundler-cache : true
28+
29+ - name : Release gem on RubyGems.org
30+ uses : rubygems/release-gem@1c162a739e8b4cb21a676e97b087e8268d8fc40b # v1.1.2
31+
32+ - name : Create GitHub release
33+ uses : actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
34+ with :
35+ github-token : " ${{ secrets.GITHUB_TOKEN }}"
36+ script : |
37+ await github.rest.repos.createRelease({
38+ owner: context.repo.owner,
39+ repo: context.repo.repo,
40+ tag_name: "${{ github.ref }}",
41+ name: "${{ github.ref_name }}",
42+ generate_release_notes: true
43+ })
You can’t perform that action at this time.
0 commit comments