diff --git a/.github/workflows/build_exe.yml b/.github/workflows/build_exe.yml index 486fed1..374497a 100644 --- a/.github/workflows/build_exe.yml +++ b/.github/workflows/build_exe.yml @@ -27,16 +27,20 @@ jobs: 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 + run: | + pyinstaller --name=dbcompare --onefile --windowed --add-data "img/icon.png;img" --icon="icon.ico" main.py + + - name: List dist directory # Check if the executable is created + run: dir dist # For Windows, this will list files in the dist directory - name: Create ZIP file run: | Compress-Archive -Path dist\dbcompare.exe -DestinationPath dbcompare.zip - - name: Upload artifact + - name: Upload artifacts uses: actions/upload-artifact@v3 with: name: dbcompare-app path: | - dist/dbcompare.exe + dist\dbcompare.exe dbcompare.zip