From 882ffc7ae42c5529cc1fa764fda786ee45d08a07 Mon Sep 17 00:00:00 2001 From: JenChieh Date: Fri, 9 Feb 2024 01:36:11 -0800 Subject: [PATCH] fix(build.yml): Use tar for unix-like system --- .github/workflows/build.yml | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7bf8d5b6..5cd818ad 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -60,8 +60,25 @@ jobs: mv COPYING dist mv README.md dist - - name: Uploading... - uses: actions/upload-artifact@v3 + - name: Change permissions (Unix) + if: matrix.target == 'linux-arm64' || matrix.target == 'linux-x64' || matrix.target == 'macos-arm64' || matrix.target == 'macos-x64' + run: | + chmod -R 777 ./dist + + - name: Tar files + run: | + tar czf eask_${{ env.VERSION }}_${{ matrix.target }}.tar -C dist . + + - name: Uploading... (Unix) + if: matrix.target == 'linux-arm64' || matrix.target == 'linux-x64' || matrix.target == 'macos-arm64' || matrix.target == 'macos-x64' + uses: actions/upload-artifact@v4 + with: + name: eask_${{ env.VERSION }}_${{ matrix.target }} + path: eask_${{ env.VERSION }}_${{ matrix.target }}.tar + + - name: Uploading... (Windows) + if: matrix.target == 'win-arm64' || matrix.target == 'win-x64' + uses: actions/upload-artifact@v4 with: name: eask_${{ env.VERSION }}_${{ matrix.target }} path: dist