Skip to content

Commit 603bf86

Browse files
authored
fix: exclude pre-release tags/branches from docs workflow and remove unused workflow_dispatch (#445)
- Pre-release tags (v*-*) and docs branches (docs/v*-*) now excluded at the trigger level, preventing beta releases from deploying to the docs site - workflow_dispatch removed from docs.yml — publish jobs require push event so manual triggers only ran the build job, which was misleading. docs-deploy.yml retains workflow_dispatch for manual IC re-deploys.
1 parent 69a2961 commit 603bf86

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/docs.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,11 @@ on:
44
push:
55
tags:
66
- 'v*'
7+
- '!v*-*' # exclude pre-release tags (e.g. v0.2.0-beta.0)
78
branches:
89
- main
910
- 'docs/v*'
11+
- '!docs/v*-*' # exclude pre-release doc branches
1012
paths:
1113
- 'docs/**'
1214
- 'docs-site/**'
@@ -16,7 +18,6 @@ on:
1618
- 'docs/**'
1719
- 'docs-site/**'
1820
- '.github/workflows/docs.yml'
19-
workflow_dispatch:
2021

2122
permissions:
2223
contents: write

0 commit comments

Comments
 (0)