Skip to content

Commit

Permalink
add github action
Browse files Browse the repository at this point in the history
  • Loading branch information
faytor committed Sep 30, 2024
1 parent 6527fed commit c919a52
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/build_exe.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
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 PyInstaller
run: |
python -m pip install --upgrade pip
pip install pyinstaller
- name: Build executable
run: pyinstaller --name=dbcompare --onefile --windowed --add-data "img/icon.png;." --icon="img/icon.png" main.py

- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: dbcompare-app
path: dist/dbcompare.exe

0 comments on commit c919a52

Please sign in to comment.