@@ -11,22 +11,21 @@ jobs:
1111
1212 steps :
1313 - name : Checkout code
14- uses : actions/checkout@v3
14+ uses : actions/checkout@v4
1515
16- - name : Set up Python
17- uses : actions /setup-python @v4
16+ - name : Install uv
17+ uses : astral-sh /setup-uv @v4
1818 with :
19- python-version : ' 3.12 '
19+ enable-cache : true
2020
21- - name : Install dependencies
22- run : |
23- pip install -r requirements.txt
24- pip install pyinstaller
21+ - name : Sync dependencies
22+ run : uv sync --group dev
2523
2624 - name : Build Linux binary
27- run : |
28- pyinstaller --onefile --name git-commit-gen --add-data "prompt_template.yml:." main.py
29- mv dist/git-commit-gen ./git-commit-gen-linux
25+ run : ./build.sh
26+
27+ - name : Rename binary for release
28+ run : mv git-commit-gen git-commit-gen-linux
3029
3130 - name : Upload Linux binary
3231 uses : softprops/action-gh-release@v2
@@ -40,23 +39,24 @@ jobs:
4039
4140 steps :
4241 - name : Checkout code
43- uses : actions/checkout@v3
42+ uses : actions/checkout@v4
4443
45- - name : Set up Python
46- uses : actions /setup-python @v4
44+ - name : Install uv
45+ uses : astral-sh /setup-uv @v4
4746 with :
48- python-version : ' 3.12 '
47+ enable-cache : true
4948
50- - name : Install dependencies
51- run : |
52- pip install -r requirements.txt
53- pip install pyinstaller
49+ - name : Sync dependencies
50+ run : uv sync --group dev
51+ shell : bash
5452
5553 - name : Build Windows binary
56- run : |
57- pyinstaller --onefile --name git-commit-gen.exe --add-data "prompt_template.yml;." main.py
58- Move-Item -Path dist\git-commit-gen.exe -Destination git-commit-gen-win.exe
59- shell : pwsh
54+ run : ./build.sh
55+ shell : bash
56+
57+ - name : Rename binary for release
58+ run : mv git-commit-gen.exe git-commit-gen-win.exe
59+ shell : bash
6060
6161 - name : Upload Windows binary
6262 uses : softprops/action-gh-release@v2
0 commit comments