From a815b7556d07f97597fe72c0b9e3ed255effeb78 Mon Sep 17 00:00:00 2001 From: SGKoishi Date: Sat, 30 May 2020 14:58:46 -0700 Subject: [PATCH] Upload artifacts with condition --- .github/workflows/build.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 38d5ba73..54c3555f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -41,21 +41,25 @@ jobs: mkdir TShockAPI\bin\${{ matrix.mode }}\ServerPlugins move TShockAPI\bin\${{ matrix.mode }}\TShockAPI.dll TShockAPI\bin\${{ matrix.mode }}\ServerPlugins - name: Upload TShock (Debug) + if: contains(matrix.mode, 'Debug') uses: actions/upload-artifact@master with: name: Experimental TShock (debug) path: TShockAPI\bin\Debug - name: Upload OTAPI Bootstrapper (Debug) + if: contains(matrix.mode, 'Debug') uses: actions/upload-artifact@master with: name: Experimental (debug) OTAPI Bootstrapper path: .\TerrariaServerAPI\TShock.Modifications.Bootstrapper\bin\Debug\TShock.Modifications.Bootstrapper.exe - name: Upload TShock (Not Debug) + if: contains(matrix.mode, 'Release') uses: actions/upload-artifact@master with: name: Experimental TShock (not debug) path: TShockAPI\bin\Release - name: Upload OTAPI Bootstrapper (Not Debug) + if: contains(matrix.mode, 'Release') uses: actions/upload-artifact@master with: name: Experimental (not debug) OTAPI Bootstrapper