-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (45 loc) · 1.58 KB
/
binaries-publish.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: Make executables
on:
push:
tags:
- '*'
jobs:
publish:
name: Executables for ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- os: ubuntu-latest
artifact_name: Linux
artifact_upload_name: Linux
asset_name: sqlite-manager-linux-amd64
- os: macos-latest
artifact_name: MacOS
artifact_upload_name: MacOS
asset_name: sqlite-manager-macos-amd64
- os: windows-latest
artifact_name: Windows
artifact_upload_name: Windows.exe
asset_name: sqlite-manager-windows-amd64.exe
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.12'
- name: Install dependencies and python-tgpt
run: |
python -m pip install --upgrade pip pyinstaller pillow
python -m pip install -r requirements.txt
- name: Build executable
run: |
pyinstaller manager.py --onefile --exclude pandas --distpath dist --workpath build --log-level INFO --exclude numpy --exclude matplotlib --exclude PyQt5 --exclude PyQt6 --exclude share --contents-directory . --icon assets/logo.jpeg --noconfirm --name ${{ matrix.artifact_name }}
- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: dist/${{ matrix.artifact_upload_name }}
asset_name: ${{ matrix.asset_name }}
tag: ${{ github.ref }}
overwrite: true