From bf90131558199ce2748e59ea436b533036b022c2 Mon Sep 17 00:00:00 2001 From: Joseph Goh Date: Sun, 9 Oct 2022 11:59:46 +0800 Subject: [PATCH] zip artifacts only for windows builds --- .github/workflows/ci-otapi3.yml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci-otapi3.yml b/.github/workflows/ci-otapi3.yml index 62944635..10031473 100644 --- a/.github/workflows/ci-otapi3.yml +++ b/.github/workflows/ci-otapi3.yml @@ -44,12 +44,22 @@ jobs: chmod +x TShockLauncher/bin/Release/net6.0/${{ matrix.arch }}/publish/TShock.Server # preserve file perms: https://github.com/actions/upload-artifact#maintaining-file-permissions-and-case-sensitive-files - - name: Archive artifact + - name: Tarball artifact (non-Windows) + if: ${{ matrix.arch != 'win-x64' }} run: | cd TShockLauncher/bin/Release/net6.0/${{ matrix.arch }}/publish/ tar -cvf ../../../../../../TShock-Beta-${{ matrix.arch }}-Release.tar * - - uses: actions/upload-artifact@v3 + - name: Upload artifact (non-Windows) + uses: actions/upload-artifact@v3 + if: ${{ matrix.arch != 'win-x64' }} with: name: TShock-Beta-${{ matrix.arch }}-Release path: TShock-Beta-${{ matrix.arch }}-Release.tar + + - name: Upload artifact (Windows) + uses: actions/upload-artifact@v3 + if: ${{ matrix.arch == 'win-x64' }} + with: + name: TShock-Beta-${{ matrix.arch }}-Release + path: TShockLauncher/bin/Release/net6.0/${{ matrix.arch }}/publish/