Skip to content

Commit 4df281c

Browse files
committed
fix: add smart path-based triggering to reduce CI/CD redundancy
- Deploy docs only triggers when documentation files change - CI/CD build skips when only docs/README files change - Eliminates unnecessary builds while preserving essential functionality
1 parent 6b5b68c commit 4df281c

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

.github/workflows/continuous-integration.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ on:
44
push:
55
branches:
66
- main
7+
paths-ignore:
8+
- 'spring-ai-docs/**'
9+
- '*.md'
10+
- 'docs/**'
711
workflow_dispatch:
812

913
jobs:

.github/workflows/deploy-docs.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,13 @@ on:
44
push:
55
branches: [main, '[0-9].[0-9].x' ]
66
tags: ['v[0-9].[0-9].[0-9]', 'v[0-9].[0-9].[0-9]-*']
7+
paths:
8+
- 'spring-ai-docs/**/*.adoc'
9+
- 'spring-ai-docs/**/antora.yml'
10+
- 'spring-ai-docs/**/antora-playbook.yml'
11+
- 'spring-ai-docs/pom.xml'
12+
- 'spring-ai-docs/src/main/javadoc/**'
13+
- '.github/workflows/deploy-docs.yml'
714
permissions:
815
actions: write
916
jobs:

0 commit comments

Comments
 (0)