Skip to content

Commit 83e6d2a

Browse files
committed
Rename executables per platform
1 parent efd7e93 commit 83e6d2a

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

.github/workflows/build.yml

Lines changed: 13 additions & 1 deletion
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:
@@ -61,4 +73,4 @@ jobs:
6173
files: |
6274
builds/**/*
6375
env:
64-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
76+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)