Skip to content

Commit 83d9155

Browse files
committed
zip each binary using platform native runners/tools
1 parent 8cb6231 commit 83d9155

File tree

1 file changed

+29
-10
lines changed

1 file changed

+29
-10
lines changed

.github/workflows/release.yml

Lines changed: 29 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,24 +9,43 @@ jobs:
99
build:
1010
uses: ./.github/workflows/build-reusable.yml
1111

12-
upload-to-release:
12+
upload-macos:
1313
needs: build
14-
runs-on: ubuntu-latest
14+
runs-on: macos-latest
1515
steps:
16-
- name: Download all artifacts
16+
- name: Download macOS artifact
1717
uses: actions/download-artifact@v4
18+
with:
19+
name: Kiwi8-${{ github.ref_name }}-macOS
1820

19-
- name: Create release archives
21+
- name: Create macOS release archive
2022
run: |
2123
cd Kiwi8-${{ github.ref_name }}-macOS
2224
zip -r -y ../Kiwi8-${{ github.ref_name }}-macOS.zip Kiwi8.app
23-
cd ../Kiwi8-${{ github.ref_name }}-Windows
24-
zip -r ../Kiwi8-${{ github.ref_name }}-Windows.zip *
2525
cd ..
2626
27-
- name: Upload builds to Release
27+
- name: Upload macOS build to Release
28+
uses: softprops/action-gh-release@v2
29+
with:
30+
files: Kiwi8-${{ github.ref_name }}-macOS.zip
31+
32+
upload-windows:
33+
needs: build
34+
runs-on: windows-latest
35+
steps:
36+
- name: Download Windows artifact
37+
uses: actions/download-artifact@v4
38+
with:
39+
name: Kiwi8-${{ github.ref_name }}-Windows
40+
41+
- name: Create Windows release archive
42+
shell: powershell
43+
run: |
44+
cd Kiwi8-${{ github.ref_name }}-Windows
45+
Compress-Archive -Path * -DestinationPath ../Kiwi8-${{ github.ref_name }}-Windows.zip
46+
cd ..
47+
48+
- name: Upload Windows build to Release
2849
uses: softprops/action-gh-release@v2
2950
with:
30-
files: |
31-
Kiwi8-${{ github.ref_name }}-macOS.zip
32-
Kiwi8-${{ github.ref_name }}-Windows.zip
51+
files: Kiwi8-${{ github.ref_name }}-Windows.zip

0 commit comments

Comments
 (0)