Skip to content

Commit 03f89e6

Browse files
committed
Add release github action workflow
1 parent 05be5b3 commit 03f89e6

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/release.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Release Gem
2+
3+
on:
4+
workflow_run:
5+
workflows: ["CI"]
6+
types:
7+
- completed
8+
branches:
9+
- main
10+
11+
permissions:
12+
contents: read
13+
14+
jobs:
15+
push:
16+
if: |
17+
github.event.workflow_run.conclusion == 'success' &&
18+
github.repository == 'rubyatscale/chatwerk' &&
19+
startsWith(github.ref, 'refs/tags/v')
20+
runs-on: ubuntu-latest
21+
environment: release
22+
permissions:
23+
contents: write
24+
id-token: write
25+
26+
steps:
27+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
28+
- name: Set up Ruby
29+
uses: ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1.229.0
30+
with:
31+
bundler-cache: true
32+
ruby-version: ruby
33+
34+
# Release
35+
- uses: rubygems/release-gem@a25424ba2ba8b387abc8ef40807c2c85b96cbe32 # v1

0 commit comments

Comments
 (0)