Skip to content

Commit

Permalink
Update desktop-builds.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
wikm360 authored Oct 10, 2024
1 parent 95c0a37 commit 49ecd14
Showing 1 changed file with 25 additions and 4 deletions.
29 changes: 25 additions & 4 deletions .github/workflows/desktop-builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,29 @@ jobs:
- name: Build executable with PyInstaller
run: pyinstaller --onefile --noconsole --icon=./GUI-ver/icon.ico ./GUI-ver/flet-ui.py

- name: Upload Windows artifact
uses: actions/upload-artifact@v4.3.4
- name: Zip executable and folders
run: |
mkdir release
cp -r ./dist/flet-ui.exe ./release/
cp -r ./core ./release/
cp -r ./GUI-ver/subs ./release/
powershell Compress-Archive -Path ./release/* -DestinationPath ./release/XC-windows.zip
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.sha }}
release_name: Release ${{ github.sha }}
draft: false
prerelease: false

- name: Upload Release Asset (Windows ZIP)
uses: actions/upload-release-asset@v1
with:
name: windows-build
path: ./dist/flet-ui.exe
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./release/XC-windows.zip
asset_name: XC-windows.zip
asset_content_type: application/zip

0 comments on commit 49ecd14

Please sign in to comment.