Skip to content

update yml

update yml #2

Workflow file for this run

name: Build DBCompare Executable
on:
push:
branches: [ develop ] # actual branch name
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pyinstaller pillow
- name: Convert PNG to ICO
run: |
python -c "from PIL import Image; img = Image.open('img/icon.png'); img.save('icon.ico')"
- name: Build executable
run: pyinstaller --name=dbcompare --onefile --windowed --add-data "img/icon.png;img" --icon="icon.ico" main.py
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: dbcompare-app
path: dist/dbcompare.exe