1- # .github/workflows/tag-release.yml
21name : Tag Release Build
32
43on :
54 push :
65 tags :
7- - ' v*' # tags like v1.0.0
6+ - ' v*'
7+
8+ permissions :
9+ contents : write
810
911jobs :
1012 build :
13+ name : Build Multi-Platform Artifacts (${{ matrix.os }})
1114 runs-on : ${{ matrix.os }}
1215 strategy :
1316 matrix :
@@ -22,59 +25,46 @@ jobs:
2225 - name : Set up Python
2326 uses : actions/setup-python@v5
2427 with :
25- python-version : " 3.13 "
28+ python-version : " 3.11 "
2629
2730 - name : Install build dependencies
2831 run : |
29- python -m pip install --upgrade pip setuptools wheel build
30- pip install pyinstaller
31- # Install GUI-specific dependencies
32- pip install pyqt6 httpx
32+ python -m pip install --upgrade pip setuptools wheel build pyinstaller
3333
34- - name : Build wheel (Linux) or exe (Windows )
34+ - name : Build Python Package (Wheel & sdist )
3535 if : matrix.os == 'ubuntu-latest'
3636 run : |
3737 python -m build
3838
39- - name : Build Windows executable
39+ - name : Build Windows Executables
4040 if : matrix.os == 'windows-latest'
4141 run : |
4242 pyinstaller --onefile owlbearag/cli.py --name owlbearag.exe
43+ pyinstaller --onefile llama_node/gui_client.py --name owlbearag_gui.exe
4344
44- - name : Build Linux GUI executable
45- if : matrix.os == 'ubuntu-latest'
46- run : |
47- pyinstaller --onefile llama_node/gui_client.py --name owlbearag_gui
48-
49- - name : Build Windows GUI executable
50- if : matrix.os == 'windows-latest'
51- run : |
52- pyinstaller --onefile llama_node/gui_client.py --name owlbearag_gui.exe
45+ - name : Build Linux Executable
46+ if : matrix.os == 'ubuntu-latest'
47+ run : |
48+ pyinstaller --onefile llama_node/gui_client.py --name owlbearag_gui
5349
54- - name : Upload artifacts for release
55- uses : actions/upload-artifact@v4
56- with :
57- name : ${{ matrix.os }}-artifacts
58- path : |
59- dist/*.whl
60- dist/*.tar.gz
61- dist/owlbearag.exe
62- dist/owlbearag_gui
63- dist/owlbearag_gui.exe
50+ - name : Upload Artifacts
6451 uses : actions/upload-artifact@v4
6552 with :
6653 name : ${{ matrix.os }}-artifacts
6754 path : |
6855 dist/*.whl
6956 dist/*.tar.gz
7057 dist/owlbearag.exe
58+ dist/owlbearag_gui
59+ dist/owlbearag_gui.exe
7160
7261 publish-release :
62+ name : Publish GitHub Release
7363 needs : build
7464 runs-on : ubuntu-latest
7565 steps :
7666 - name : Download all artifacts
77- uses : actions/download-artifact@v8
67+ uses : actions/download-artifact@v4
7868 with :
7969 path : ./artifacts
8070
8676 draft : false
8777 prerelease : false
8878 files : ./artifacts/**
79+ generate_release_notes : true
8980 env :
9081 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
0 commit comments