Skip to content

Commit 9cf45a2

Browse files
committed
chore(ci): rename build artifacts to include platform suffix
1 parent fe6d644 commit 9cf45a2

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

.github/workflows/ci.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ jobs:
5050
pip install pyinstaller
5151
chmod +x build.sh
5252
./build.sh auto
53+
mv dist/tricode dist/tricode-${{ matrix.asset_suffix }}
5354
5455
# ==== MacOS ====
5556
- name: Build on macOS
@@ -59,6 +60,7 @@ jobs:
5960
pip install pyinstaller
6061
chmod +x build.sh
6162
./build.sh auto
63+
mv dist/tricode dist/tricode-${{ matrix.asset_suffix }}
6264
6365
# ==== Windows ====
6466
- name: Build on Windows
@@ -68,33 +70,34 @@ jobs:
6870
pip install -r requirements.txt
6971
pip install pyinstaller
7072
build.bat auto
73+
ren dist\tricode.exe tricode-${{ matrix.asset_suffix }}.exe
7174
7275
- name: Upload artifact (Windows)
7376
if: startsWith(matrix.os, 'windows')
7477
uses: actions/upload-artifact@v4
7578
with:
7679
name: tricode-${{ matrix.asset_suffix }}
7780
path: |
78-
dist/tricode.exe
81+
dist/tricode-${{ matrix.asset_suffix }}.exe
7982
8083
- name: Upload artifact (Unix)
8184
if: startsWith(matrix.os, 'ubuntu') || startsWith(matrix.os, 'macos')
8285
uses: actions/upload-artifact@v4
8386
with:
8487
name: tricode-${{ matrix.asset_suffix }}
8588
path: |
86-
dist/tricode
89+
dist/tricode-${{ matrix.asset_suffix }}
8790
8891
- name: Upload to release (Windows)
8992
if: github.event_name == 'release' && startsWith(matrix.os, 'windows')
9093
env:
9194
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
9295
run: |
93-
gh release upload ${{ github.event.release.tag_name }} dist/tricode.exe#tricode-${{ matrix.asset_suffix }}.exe --clobber
96+
gh release upload ${{ github.event.release.tag_name }} dist/tricode-${{ matrix.asset_suffix }}.exe --clobber
9497
9598
- name: Upload to release (Unix)
9699
if: github.event_name == 'release' && (startsWith(matrix.os, 'ubuntu') || startsWith(matrix.os, 'macos'))
97100
env:
98101
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
99102
run: |
100-
gh release upload ${{ github.event.release.tag_name }} dist/tricode#tricode-${{ matrix.asset_suffix }} --clobber
103+
gh release upload ${{ github.event.release.tag_name }} dist/tricode-${{ matrix.asset_suffix }} --clobber

0 commit comments

Comments
 (0)