Skip to content

Commit 96937d9

Browse files
authored
Rename output files for different operating systems
1 parent efd7e93 commit 96937d9

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/build.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,18 @@ jobs:
3232
pyinstaller --onefile AFHscraper.py
3333
shell: bash
3434

35+
- name: Rename output for OS
36+
run: |
37+
cd dist
38+
if [[ "${{ matrix.os }}" == "ubuntu-22.04" ]]; then
39+
mv AFHscraper AFHscraperLinux
40+
elif [[ "${{ matrix.os }}" == "macos-latest" ]]; then
41+
mv AFHscraper AFHscraperMacOS
42+
else
43+
mv AFHscraper.exe AFHscraperWindows.exe
44+
fi
45+
shell: bash
46+
3547
- name: Upload build artifact
3648
uses: actions/upload-artifact@v4
3749
with:

0 commit comments

Comments
 (0)