Skip to content

Commit 9806b30

Browse files
authored
Update build.yml
1 parent d798c1d commit 9806b30

1 file changed

Lines changed: 13 additions & 11 deletions

File tree

.github/workflows/build.yml

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ jobs:
7272
- name: Upload Windows installer
7373
uses: actions/upload-artifact@v4
7474
with:
75-
name: windows-build
75+
name: windows-build-${{ matrix.arch }}
7676
path: dist/*.exe
7777

7878
build-macos:
@@ -130,19 +130,21 @@ jobs:
130130
done
131131
132132
# Windows
133-
for f in combined-artifacts/windows-build/*; do
134-
base="$(basename "$f")"
135-
arch="x64"
136-
[[ "$base" == *arm64* ]] && arch="arm64"
137-
cp "$f" "renamed/windows-AutoCaption-${VERSION}-${arch}.exe"
133+
for f in combined-artifacts/windows-build-x64/*; do
134+
cp "$f" "renamed/windows-AutoCaption-${VERSION}-x64.exe"
135+
done
136+
137+
for f in combined-artifacts/windows-build-arm64/*; do
138+
cp "$f" "renamed/windows-AutoCaption-${VERSION}-arm64.exe"
138139
done
139140
140141
# macOS
141-
for f in combined-artifacts/macos-build/*; do
142-
base="$(basename "$f")"
143-
arch="x64"
144-
[[ "$base" == *arm64* ]] && arch="arm64"
145-
cp "$f" "renamed/macos-AutoCaption-${VERSION}-${arch}.dmg"
142+
for f in combined-artifacts/macos-build/*x64.dmg; do
143+
cp "$f" "renamed/macos-AutoCaption-${VERSION}-x64.dmg"
144+
done
145+
146+
for f in combined-artifacts/macos-build/*arm64.dmg; do
147+
cp "$f" "renamed/macos-AutoCaption-${VERSION}-arm64.dmg"
146148
done
147149
148150
- name: Create GitHub Release

0 commit comments

Comments
 (0)