Skip to content

Commit 858baf8

Browse files
committed
Fix GitHub Actions release asset upload with unique filenames
1 parent c95ee4b commit 858baf8

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

.github/workflows/release.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,17 @@ jobs:
4747
echo "Searching for all binary files:"
4848
find pathik -type f -name "pathik_bin*" || echo "No binaries found"
4949
50+
- name: Prepare binaries with unique names
51+
run: |
52+
mkdir -p release_assets
53+
cp pathik/bin/darwin_amd64/pathik_bin release_assets/pathik_bin_darwin_amd64
54+
cp pathik/bin/darwin_arm64/pathik_bin release_assets/pathik_bin_darwin_arm64
55+
cp pathik/bin/linux_amd64/pathik_bin release_assets/pathik_bin_linux_amd64
56+
cp pathik/bin/linux_arm64/pathik_bin release_assets/pathik_bin_linux_arm64
57+
cp pathik/bin/windows_amd64/pathik_bin.exe release_assets/pathik_bin_windows_amd64.exe
58+
59+
ls -la release_assets
60+
5061
- name: Create GitHub Release
5162
id: create_release
5263
uses: softprops/action-gh-release@v1
@@ -55,7 +66,7 @@ jobs:
5566
draft: false
5667
prerelease: false
5768
token: ${{ secrets.GITHUB_TOKEN }}
58-
files: pathik/bin/**/*pathik_bin*
69+
files: release_assets/*
5970

6071
- name: Build Python package
6172
run: |

0 commit comments

Comments
 (0)