Skip to content

Commit dc933e6

Browse files
committed
feat: simplify CI pipeline [release]
1 parent 807caa2 commit dc933e6

File tree

2 files changed

+3
-132
lines changed

2 files changed

+3
-132
lines changed

β€Ž.github/workflows/ci.ymlβ€Ž

Lines changed: 3 additions & 131 deletions
Original file line numberDiff line numberDiff line change
@@ -14,46 +14,6 @@ env:
1414
GITHUB_PACKAGES_SOURCE: https://nuget.pkg.github.com/byerlikaya/index.json
1515

1616
jobs:
17-
test:
18-
name: Test & Quality
19-
runs-on: ubuntu-latest
20-
permissions:
21-
contents: read
22-
pull-requests: read
23-
24-
steps:
25-
- uses: actions/checkout@v4
26-
27-
- name: Setup .NET
28-
uses: actions/setup-dotnet@v4
29-
with:
30-
dotnet-version: ${{ env.DOTNET_VERSION }}
31-
32-
- name: Restore dependencies
33-
run: dotnet restore src/SmartRAG/SmartRAG.csproj
34-
35-
- name: Build
36-
run: dotnet build src/SmartRAG/SmartRAG.csproj --configuration Release --verbosity minimal
37-
38-
- name: Run tests
39-
run: dotnet test src/SmartRAG/SmartRAG.csproj --configuration Release --verbosity minimal --collect:"XPlat Code Coverage" --logger trx --results-directory ./TestResults --no-build
40-
continue-on-error: true
41-
42-
- name: Upload coverage reports to Codecov
43-
uses: codecov/codecov-action@v5
44-
with:
45-
token: ${{ secrets.CODECOV_TOKEN }}
46-
directory: ./TestResults
47-
flags: unittests
48-
name: codecov-umbrella
49-
fail_ci_if_error: false
50-
51-
- name: Run code analysis
52-
run: dotnet build src/SmartRAG/SmartRAG.csproj --configuration Release --verbosity quiet
53-
54-
- name: Check for vulnerabilities
55-
run: dotnet list package --vulnerable --project src/SmartRAG/SmartRAG.csproj
56-
5717
build:
5818
name: Build & Package
5919
runs-on: ubuntu-latest
@@ -166,24 +126,9 @@ jobs:
166126
id: get_version
167127
run: |
168128
PACKAGE_VERSION=$(grep -oP '<PackageVersion>\K[^<]+' src/SmartRAG/SmartRAG.csproj)
169-
170129
echo "version=$PACKAGE_VERSION" >> $GITHUB_OUTPUT
171130
echo "Package version: $PACKAGE_VERSION"
172131
173-
- name: Generate changelog
174-
id: changelog
175-
run: |
176-
# Get commits since last release
177-
LAST_TAG=$(git describe --tags --abbrev=0 2>/dev/null || echo "")
178-
if [ -n "$LAST_TAG" ]; then
179-
CHANGELOG=$(git log --pretty=format:"- %s (%an)" ${LAST_TAG}..HEAD | grep -v "Merge pull request" | grep -v "Merge branch")
180-
else
181-
CHANGELOG=$(git log --pretty=format:"- %s (%an)" --oneline -20 | grep -v "Merge pull request" | grep -v "Merge branch")
182-
fi
183-
echo "changelog<<EOF" >> $GITHUB_OUTPUT
184-
echo "$CHANGELOG" >> $GITHUB_OUTPUT
185-
echo "EOF" >> $GITHUB_OUTPUT
186-
187132
- name: Create Release
188133
uses: actions/create-release@v1
189134
env:
@@ -192,32 +137,13 @@ jobs:
192137
tag_name: v${{ steps.get_version.outputs.version }}-build-${{ github.run_number }}
193138
release_name: SmartRAG v${{ steps.get_version.outputs.version }} Build ${{ github.run_number }}
194139
body: |
195-
## πŸš€ What's New in v${{ steps.get_version.outputs.version }}
140+
## πŸš€ SmartRAG v${{ steps.get_version.outputs.version }} Release
196141
197-
### ✨ Latest Features
198-
- 🧠 **Enhanced Semantic Search** - Advanced hybrid scoring (80% semantic + 20% keyword)
199-
- πŸ” **Smart Document Chunking** - Word boundary validation and optimal break points
200-
- 🧠 **SemanticSearchService** - Dedicated service for semantic relevance scoring
201-
- βš™οΈ **Configuration Binding Fix** - User settings now take absolute priority
202-
- πŸ”§ **Improved Error Handling** - Better logging and retry mechanisms
203-
- πŸ“Š **Performance Optimizations** - Faster chunking and search algorithms
204-
205-
### πŸ”§ Previous Features
206-
- 🧠 **Smart Query Intent Detection** - Automatically routes queries to chat vs document search
207-
- 🌍 **Language-Agnostic Design** - Removed all hardcoded language patterns
208-
- πŸ” **Enhanced Search Relevance** - Improved name detection and content scoring
209-
- πŸ”€ **Unicode Normalization** - Fixed special character handling issues
210-
- ⚑ **Rate Limiting & Retry Logic** - Robust API handling with exponential backoff
211-
- πŸš€ **VoyageAI Integration** - Anthropic embedding support
212-
- πŸ“š **Enhanced Documentation** - Official documentation links
213-
- 🧹 **Configuration Cleanup** - Removed unnecessary fields
214-
- 🎯 **Project Simplification** - Streamlined for better performance
215-
216-
## πŸ“¦ Downloads
142+
### πŸ“¦ Downloads
217143
- **NuGet Package**: [SmartRAG v${{ steps.get_version.outputs.version }}](https://www.nuget.org/packages/SmartRAG/${{ steps.get_version.outputs.version }})
218144
- **GitHub Packages**: Available in this repository
219145
220-
## πŸš€ Installation
146+
### πŸš€ Installation
221147
```bash
222148
# NuGet
223149
dotnet add package SmartRAG --version ${{ steps.get_version.outputs.version }}
@@ -226,15 +152,6 @@ jobs:
226152
dotnet add package SmartRAG --version ${{ steps.get_version.outputs.version }} --source https://nuget.pkg.github.com/byerlikaya/index.json
227153
```
228154
229-
## πŸ“ Recent Changes
230-
${{ steps.changelog.outputs.changelog }}
231-
232-
## πŸ”— Links
233-
- πŸ“– [Documentation](https://github.com/byerlikaya/SmartRAG#readme)
234-
- πŸ› [Report Issues](https://github.com/byerlikaya/SmartRAG/issues)
235-
- πŸ’¬ [Discussions](https://github.com/byerlikaya/SmartRAG/discussions)
236-
- πŸ“§ [Contact](mailto:b.yerlikaya@outlook.com)
237-
238155
---
239156
240157
**Built with ❀️ by Barış Yerlikaya** | Made in Turkey πŸ‡ΉπŸ‡·
@@ -251,49 +168,4 @@ jobs:
251168
asset_name: SmartRAG.${{ steps.get_version.outputs.version }}.nupkg
252169
asset_content_type: application/octet-stream
253170

254-
security-scan:
255-
name: Security Scan
256-
runs-on: ubuntu-latest
257-
if: github.ref == 'refs/heads/main'
258-
permissions:
259-
contents: read
260-
security-events: write
261-
continue-on-error: true
262-
263-
steps:
264-
- uses: actions/checkout@v4
265-
266-
- name: Setup .NET
267-
uses: actions/setup-dotnet@v4
268-
with:
269-
dotnet-version: ${{ env.DOTNET_VERSION }}
270-
271-
- name: Restore dependencies
272-
run: dotnet restore src/SmartRAG/SmartRAG.csproj
273-
274-
- name: Run security scan
275-
run: |
276-
echo "Checking for vulnerable packages..."
277-
dotnet list package --vulnerable --project src/SmartRAG/SmartRAG.csproj
278-
echo "Checking for outdated packages..."
279-
dotnet tool install --global dotnet-outdated-tool || echo "dotnet-outdated already installed"
280-
dotnet outdated --upgrade --project src/SmartRAG/SmartRAG.csproj || echo "No outdated packages or tool unavailable"
281-
282-
- name: Initialize CodeQL
283-
uses: github/codeql-action/init@v3
284-
with:
285-
languages: csharp
286-
config-file: ./.github/codeql/codeql-config.yml
287-
continue-on-error: true
288-
289-
- name: Autobuild
290-
uses: github/codeql-action/autobuild@v3
291-
continue-on-error: true
292-
293-
- name: Perform CodeQL Analysis
294-
uses: github/codeql-action/analyze@v3
295-
with:
296-
category: "/language:csharp"
297-
continue-on-error: true
298-
299171

β€ŽREADME.mdβ€Ž

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# πŸš€ SmartRAG - Enterprise-Grade RAG Solution
22

33
[![Build Status](https://github.com/byerlikaya/SmartRAG/workflows/CI%2FCD%20Pipeline/badge.svg)](https://github.com/byerlikaya/SmartRAG/actions)
4-
[![CodeQL](https://github.com/byerlikaya/SmartRAG/workflows/CodeQL%20Analysis/badge.svg)](https://github.com/byerlikaya/SmartRAG/actions)
54
[![NuGet Version](https://img.shields.io/nuget/v/SmartRAG.svg)](https://www.nuget.org/packages/SmartRAG)
65
[![NuGet Downloads](https://img.shields.io/nuget/dt/SmartRAG.svg)](https://www.nuget.org/packages/SmartRAG)
76
[![.NET](https://img.shields.io/badge/.NET-9.0-blue.svg)](https://dotnet.microsoft.com/download/dotnet/9.0)

0 commit comments

Comments
Β (0)