Skip to content

Commit e07e801

Browse files
committed
feat: apply languages.json data to language registry
1 parent 7ec5b2e commit e07e801

4 files changed

Lines changed: 2123 additions & 357 deletions

File tree

.github/workflows/release.yml

Lines changed: 11 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -8,27 +8,12 @@ on:
88
env:
99
CARGO_TERM_COLOR: always
1010

11-
jobs:
12-
create-release:
13-
name: Create Release
14-
runs-on: ubuntu-latest
15-
outputs:
16-
upload_url: ${{ steps.create_release.outputs.upload_url }}
17-
steps:
18-
- name: Create Release
19-
id: create_release
20-
uses: actions/create-release@v1
21-
env:
22-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
23-
with:
24-
tag_name: ${{ github.ref }}
25-
release_name: Release ${{ github.ref }}
26-
draft: false
27-
prerelease: false
11+
permissions:
12+
contents: write
2813

14+
jobs:
2915
build-release:
3016
name: Build Release
31-
needs: create-release
3217
runs-on: ${{ matrix.os }}
3318
strategy:
3419
matrix:
@@ -76,15 +61,16 @@ jobs:
7661
fi
7762
shell: bash
7863

64+
- name: Rename binary for release
65+
run: |
66+
mkdir -p release-assets
67+
cp target/${{ matrix.target }}/release/${{ matrix.binary_name }} release-assets/${{ matrix.asset_name }}
68+
shell: bash
69+
7970
- name: Upload Release Asset
80-
uses: actions/upload-release-asset@v1
81-
env:
82-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
71+
uses: softprops/action-gh-release@v2
8372
with:
84-
upload_url: ${{ needs.create-release.outputs.upload_url }}
85-
asset_path: target/${{ matrix.target }}/release/${{ matrix.binary_name }}
86-
asset_name: ${{ matrix.asset_name }}
87-
asset_content_type: application/octet-stream
73+
files: release-assets/${{ matrix.asset_name }}
8874

8975
publish-crate:
9076
name: Publish to crates.io

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ A fast code analysis tool for remote repositories with multi-platform support.
1212
- **Asynchronous Repository Processing**: Non-blocking HTTP client with concurrent stream processing for efficient remote repository fetching and decompression
1313
- **Multi-Platform URL Resolution**: Features intelligent URL parsing engine that normalizes different Git hosting platform APIs (GitHub, GitLab, Bitbucket, Codeberg) into unified archive endpoints with branch/commit resolution
1414
- **Streaming Archive Analysis**: Processes tar.gz archives directly in memory using streaming decompression without temporary file extraction, reducing I/O overhead and memory footprint
15-
- **Language Detection Engine**: Implements rule-based file extension and content analysis system supporting 150+ programming languages with configurable pattern matching and statistical computation
15+
- **Language Detection Engine**: Implements rule-based file extension and content analysis system supporting 150+ programming languages with configurable pattern matching and statistical computation (use tokei [languages map](https://github.com/XAMPPRocky/tokei/blob/master/languages.json))
1616
- **Real-time Progress Monitoring**: Features bandwidth-aware progress tracking with download speed calculation, ETA estimation, and adaptive UI rendering for terminal environments
1717
- **Structured Data Serialization**: Provides multiple output format engines (Table, JSON, CSV, XML) with schema validation and type-safe serialization for integration with external tools
1818
- **Authentication Layer**: Implements OAuth token management with secure credential handling for accessing private repositories across different hosting platforms

0 commit comments

Comments
 (0)