|
9 | 9 | build: |
10 | 10 | uses: ./.github/workflows/build-reusable.yml |
11 | 11 |
|
12 | | - upload-to-release: |
| 12 | + upload-macos: |
13 | 13 | needs: build |
14 | | - runs-on: ubuntu-latest |
| 14 | + runs-on: macos-latest |
15 | 15 | steps: |
16 | | - - name: Download all artifacts |
| 16 | + - name: Download macOS artifact |
17 | 17 | uses: actions/download-artifact@v4 |
| 18 | + with: |
| 19 | + name: Kiwi8-${{ github.ref_name }}-macOS |
18 | 20 |
|
19 | | - - name: Create release archives |
| 21 | + - name: Create macOS release archive |
20 | 22 | run: | |
21 | 23 | cd Kiwi8-${{ github.ref_name }}-macOS |
22 | 24 | 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 * |
25 | 25 | cd .. |
26 | 26 |
|
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 |
28 | 49 | uses: softprops/action-gh-release@v2 |
29 | 50 | 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