Skip to content

Commit 0da1603

Browse files
Simplify release workflow condition in CI
Replaced complex conditional checks with a single "released" event type. This simplifies the workflow and improves maintainability by removing redundant logic for pre-release and branch naming conventions.
1 parent fd21d6b commit 0da1603

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,7 @@ on:
44
- master
55
release:
66
types:
7-
- created
8-
if: |
9-
!github.event.release.prerelease &&
10-
!contains(github.ref, '-beta') &&
11-
!contains(github.ref, '-alpha') &&
12-
!contains(github.ref, '-rc') &&
13-
!contains(github.ref, '-preview')
7+
- released
148

159
jobs:
1610
build:

0 commit comments

Comments
 (0)