Skip to content

Commit 478770e

Browse files
committed
Fix the release.yml to release on tag
1 parent a21b74b commit 478770e

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,16 @@
11
name: Release Gem
22

33
on:
4-
workflow_run:
5-
workflows: ["CI"]
6-
types:
7-
- completed
8-
branches:
9-
- main
4+
push:
5+
tags:
6+
- 'v*'
107

118
permissions:
129
contents: read
1310

1411
jobs:
1512
push:
16-
if: |
17-
github.event.workflow_run.conclusion == 'success' &&
18-
github.repository == 'rubyatscale/chatwerk' &&
19-
startsWith(github.ref, 'refs/tags/v')
13+
if: github.repository == 'rubyatscale/chatwerk'
2014
runs-on: ubuntu-latest
2115
environment: release
2216
permissions:

0 commit comments

Comments
 (0)