Skip to content

Commit 9ece713

Browse files
committed
ci: add release gem workflows
1 parent 2856faa commit 9ece713

File tree

2 files changed

+40
-1
lines changed

2 files changed

+40
-1
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
- dev
1010

1111
concurrency:
12-
group: ${{ github.sha }}
12+
group: ${{ github.workflow }}-${{ github.sha }}
1313
cancel-in-progress: true
1414

1515
jobs:

.github/workflows/release.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Release Gem
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
tags:
7+
- 'v*'
8+
release:
9+
types:
10+
- created
11+
12+
concurrency:
13+
group: ${{ github.workflow }}-${{ github.sha }}
14+
cancel-in-progress: true
15+
16+
jobs:
17+
push:
18+
runs-on: ubuntu-latest
19+
20+
permissions:
21+
contents: write
22+
id-token: write
23+
24+
# If you configured a GitHub environment on RubyGems, you must use it here.
25+
environment: release
26+
27+
steps:
28+
# Set up
29+
- uses: actions/checkout@v5
30+
with:
31+
persist-credentials: false
32+
- name: Set up Ruby
33+
uses: ruby/setup-ruby@v1
34+
with:
35+
bundler-cache: true
36+
ruby-version: ruby
37+
38+
- name: Release Gem
39+
uses: rubygems/release-gem@v1

0 commit comments

Comments
 (0)