Skip to content

Commit 49a9868

Browse files
committed
hopefully fix artifact upload to S3
1 parent eb659ce commit 49a9868

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

.github/workflows/release.yml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,25 +99,33 @@ jobs:
9999
uses: actions/download-artifact@v4
100100
with:
101101
name: "mgconsole static Linux build X64"
102-
path: linux-x86_64/mgconsole
102+
path: temp-linux-x64
103103

104104
- name: Download artifacts Linux ARM64
105105
uses: actions/download-artifact@v4
106106
with:
107107
name: "mgconsole static Linux build ARM64"
108-
path: linux-aarch64/mgconsole
108+
path: temp-linux-arm64
109109

110110
- name: Download artifacts MacOS
111111
uses: actions/download-artifact@v4
112112
with:
113113
name: "mgconsole MacOS build"
114-
path: macos/mgconsole
114+
path: temp-macos
115115

116116
- name: Download artifacts Windows
117117
uses: actions/download-artifact@v4
118118
with:
119119
name: "mgconsole Windows build"
120-
path: windows/mgconsole.exe
120+
path: temp-windows
121+
122+
- name: Organize binaries
123+
run: |
124+
mkdir -p linux-x86_64 linux-aarch64 macos windows
125+
find temp-linux-x64 -name "mgconsole" -type f | head -1 | xargs -I {} cp {} linux-x86_64/mgconsole
126+
find temp-linux-arm64 -name "mgconsole" -type f | head -1 | xargs -I {} cp {} linux-aarch64/mgconsole
127+
find temp-macos -name "mgconsole" -type f | head -1 | xargs -I {} cp {} macos/mgconsole
128+
find temp-windows -name "mgconsole.exe" -type f | head -1 | xargs -I {} cp {} windows/mgconsole.exe
121129
122130
- name: Upload binaries to S3
123131
env:

0 commit comments

Comments
 (0)