Skip to content

Commit

Permalink
Optimize GitHub Actions Workflow for One-File Executable
Browse files Browse the repository at this point in the history
  • Loading branch information
mschabhuettl authored Nov 16, 2023
1 parent c4555e1 commit 2af156e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,14 @@ jobs:
run: pyinstaller --onefile --name SP5ToICalExp --add-data "src/app/templates;templates/" --add-data "src/utils;utils/" --add-data "$(python -c 'import dateutil.zoneinfo; print(dateutil.__path__[0])')/zoneinfo;dateutil/zoneinfo" src/main.py --log-level DEBUG
shell: pwsh

# List All Files After Build for Debugging Purposes
- name: List files after build
# List All Files in dist Directory for Debugging Purposes
- name: List files in dist directory
run: Get-ChildItem -Path dist -Recurse
shell: pwsh

# Compress the Resulting EXE Folder to a ZIP Archive
- name: Zip the EXE Folder
run: Compress-Archive -Path dist/SP5ToICalExp/* -DestinationPath "SP5ToICalExp-${{ env.VERSION }}-windows.zip"
# Compress the Single Executable File to a ZIP Archive
- name: Zip the EXE File
run: Compress-Archive -Path dist/SP5ToICalExp.exe -DestinationPath "SP5ToICalExp-${{ env.VERSION }}-windows.zip"
shell: pwsh

# List All Files Inside the ZIP Archive for Debugging Purposes
Expand Down

0 comments on commit 2af156e

Please sign in to comment.