Skip to content

Commit

Permalink
Add some debugs
Browse files Browse the repository at this point in the history
  • Loading branch information
jordantgh committed Oct 3, 2023
1 parent 16a0344 commit 4295d08
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
- name: Install Poetry on Windows
if: runner.os == 'Windows'
run: |
(Invoke-WebRequest -Uri https://install.python-poetry.org -UseBasicParsing).Content | py - --version ${{ env.POETRY_VERSION }}
(Invoke-WebRequest -Uri https://install.python-poetry.org -UseBasicParsing).Content | python3 - --version ${{ env.POETRY_VERSION }}
echo "$env:APPDATA\Python\Scripts" | Out-File -FilePath $env:GITHUB_PATH -Append
# Install dependencies
Expand All @@ -55,6 +55,12 @@ jobs:
pip install pyinstaller
pyinstaller --onefile --name ${{ env.PACKAGE_NAME }}_${{ env.PACKAGE_VERSION }} app/main.py
# Debug: List the full path of the generated package
- name: Debug - List full path of the generated package
run: |
echo "Full path of the generated package:"
find $(pwd) -type f -name "${{ env.PACKAGE_NAME }}_${{ env.PACKAGE_VERSION }}*"
# Package the binary
- name: Package Binary on Linux
if: runner.os == 'Linux'
Expand All @@ -64,6 +70,10 @@ jobs:
if: runner.os == 'Windows'
run: Compress-Archive -Path .\dist\${{ env.PACKAGE_NAME }}_${{ env.PACKAGE_VERSION }}.exe -DestinationPath .\${{ env.PACKAGE_NAME }}_${{ env.PACKAGE_VERSION }}_windows.zip

# Debug: List the contents of the directory
- name: Debug - List directory contents
run: ls -R

# Upload the packaged binary as an artifact
- name: Upload Binary as Artifact
uses: actions/upload-artifact@v2
Expand Down

0 comments on commit 4295d08

Please sign in to comment.