Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
tomkolp authored Jan 30, 2025
1 parent ae69680 commit 68067ab
Showing 1 changed file with 11 additions and 19 deletions.
30 changes: 11 additions & 19 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,11 @@ jobs:
- name: Build epo.exe on Windows
run: |
pyinstaller --onefile --name epo.exe epo.py
ls -al dist/
- name: Check if epo.exe was created
- name: Check output files
run: |
if [ ! -f dist/epo.exe ]; then
echo "Warning: epo.exe was not created."
fi
Get-ChildItem -Path dist/
shell: pwsh

- name: Upload epo.exe as artifact
uses: actions/upload-artifact@v4
Expand Down Expand Up @@ -63,15 +61,12 @@ jobs:
- name: Build executable on Linux
run: |
pyinstaller --onefile --name epo-linux epo.py
ls -al dist/
- name: Check if epo-linux was created
- name: Check output files
run: |
if [ ! -f dist/epo-linux ]; then
echo "Warning: epo-linux was not created."
fi
ls -al dist/
- name: Upload epo executable as artifact
- name: Upload epo-linux as artifact
uses: actions/upload-artifact@v4
with:
name: epo-executable-linux
Expand All @@ -97,15 +92,12 @@ jobs:
- name: Build executable on macOS
run: |
pyinstaller --onefile --name epo-macos epo.py
ls -al dist/
- name: Check if epo-macos was created
- name: Check output files
run: |
if [ ! -f dist/epo-macos ]; then
echo "Warning: epo-macos was not created."
fi
ls -al dist/
- name: Upload epo executable as artifact
- name: Upload epo-macos as artifact
uses: actions/upload-artifact@v4
with:
name: epo-executable-macos
Expand All @@ -125,8 +117,8 @@ jobs:
- name: Add and commit all built executables
run: |
git add dist/*
git diff --cached --quiet || git commit -m "Add built executables for Windows, Linux, and macOS" # Tylko jeśli są zmiany
git add dist/* || echo "No files to add"
git diff --cached --quiet || git commit -m "Add built executables for Windows, Linux, and macOS"
- name: Push built executables to repository
run: |
Expand Down

0 comments on commit 68067ab

Please sign in to comment.