1- name : Build and Upload TOsk Binary
1+ name : " Build and Upload TOsk Binary"
22
33on :
44 workflow_dispatch :
55 inputs :
66 version :
7- description : ' Version tag (e.g., v1.0.6)'
7+ description : " Version tag (e.g., v1.0.6)"
88 required : true
99
1010jobs :
@@ -14,37 +14,37 @@ jobs:
1414 contents : write # Explicitly grant write permissions
1515
1616 steps :
17- - name : Checkout repository
17+ - name : " Checkout repository"
1818 uses : actions/checkout@v3
1919
20- - name : Set up Python
20+ - name : " Set up Python"
2121 uses : actions/setup-python@v4
2222 with :
23- python-version : ' 3.11'
23+ python-version : " 3.11"
2424
25- - name : Install system dependencies
25+ - name : " Install system dependencies"
2626 run : |
2727 sudo apt-get update
2828 sudo apt-get install -y python3-venv
2929
30- - name : Set up virtual environment and install dependencies
30+ - name : " Set up virtual environment and install dependencies"
3131 run : |
3232 python3 -m venv venv
3333 ./venv/bin/pip install --upgrade pip
3434 ./venv/bin/pip install -r requirements.txt
3535
36- - name : Debug: List venv/bin contents
36+ - name : " Debug: List venv/bin contents"
3737 run : ls -l venv/bin
3838
39- - name : Build binary with PyInstaller
39+ - name : " Build binary with PyInstaller"
4040 run : |
4141 ./venv/bin/python -m PyInstaller --onefile \
4242 --add-data "bin/viu:bin" \
4343 --add-data "tosk.jpg:." \
4444 main.py
4545 mv dist/main dist/tosk-linux-x86_64
4646
47- - name : Create Git tag
47+ - name : " Create Git tag"
4848 run : |
4949 git config --local user.email "[email protected] " 5050 git config --local user.name "GitHub Action"
5353 env :
5454 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
5555
56- - name : Upload TOsk Binary to Release
56+ - name : " Upload TOsk Binary to Release"
5757 uses : ncipollo/release-action@v1
5858 with :
5959 artifacts : " dist/tosk-linux-x86_64"
0 commit comments