Skip to content

Commit fd21d6b

Browse files
Restrict CI release jobs to stable releases
Updated the CI workflow to ensure release jobs only trigger for stable releases by filtering out prereleases and branches with '-beta', '-alpha', '-rc', or '-preview' suffixes. - Added a condition to the CI workflow to skip prereleases and specific branch patterns. - Ensures only stable releases trigger the release workflow for better deployment control.
1 parent a78ca1b commit fd21d6b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ on:
55
release:
66
types:
77
- 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')
814
915
jobs:
1016
build:

0 commit comments

Comments
 (0)