Skip to content

Commit 6cfc210

Browse files
committed
ci(release): skip pre-release tags (tag-only for -rc/-alpha/-beta)
Guard the release job so only FINAL version tags (v2.0.0) build + publish a GitHub Release; pre-release tags (containing '-') are tag-only, leaving Latest unchanged — matching the v2 pre-release strategy (alpha/rc = pinnable tags, not Releases). Manual workflow_dispatch still runs.
1 parent 6577f36 commit 6cfc210

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ permissions:
2121

2222
jobs:
2323
release:
24+
# Only cut a Release for FINAL version tags (v2.0.0). Pre-release tags
25+
# (-rc/-alpha/-beta) are tag-only — no build, no Release, Latest unchanged —
26+
# matching the v2 pre-release strategy. Manual dispatch always runs.
27+
if: ${{ github.event_name == 'workflow_dispatch' || !contains(github.ref_name, '-') }}
2428
runs-on: ubuntu-22.04
2529
timeout-minutes: 60
2630
steps:

0 commit comments

Comments
 (0)