From 8e80da343b6abe5869b7c8acd72a16f506bd5aa8 Mon Sep 17 00:00:00 2001 From: Ian Wijma Date: Sun, 19 Nov 2023 16:05:18 +1100 Subject: [PATCH] Add OS-specific build archives to GitHub workflow Updated GitHub Actions workflow to create and upload build archives for Linux, MacOS and Windows. Previously, we were creating a single archive without specifying the intended operating system which might lead to compatibility issues. This update will create separate build archives for each OS, making it easier for users to download the correct version for their system. --- .github/workflows/build.yaml | 28 +++++++++++++++++++++++----- 1 file changed, 23 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 4a9434c..dc51bf2 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -13,12 +13,30 @@ jobs: run: npm ci - name: Building project run: npm run build - - name: Creating archive + - name: Creating Linux Archive uses: vimtor/action-zip@v1.1 with: - files: out/ - dest: build.zip - - name: Uploading archive + files: out/kr-linux + dest: linux.zip + - name: Upload Linux Archive uses: actions/upload-artifact@v3 with: - path: build.zip + path: linux.zip + - name: Creating MacOS Archive + uses: vimtor/action-zip@v1.1 + with: + files: out/kr-macos + dest: macos.zip + - name: Upload MacOS Archive + uses: actions/upload-artifact@v3 + with: + path: macos.zip + - name: Creating Windows Archive + uses: vimtor/action-zip@v1.1 + with: + files: out/kr-win.exe + dest: windows.zip + - name: Upload Windows Archive + uses: actions/upload-artifact@v3 + with: + path: windows.zip