From 250505a340a99ff47f2d532748c21966e72c57ce Mon Sep 17 00:00:00 2001 From: Alessandro Proto Date: Sun, 8 Jan 2023 01:12:24 +0100 Subject: [PATCH] Update dotnet.yml --- .github/workflows/dotnet.yml | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 39d32df..1bb254c 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -26,11 +26,21 @@ jobs: run: dotnet build --no-restore - name: Test run: dotnet test --no-build --verbosity normal - - name: Publish - run: dotnet publish Capy64/Capy64.csproj -c Release --no-self-contained -a x64 -o publish -p:PublishSingleFile=true - - name: Upload a Build Artifact + + - name: Publish for Linux x64 + run: dotnet publish Capy64/Capy64.csproj -c Release --no-self-contained -a x64 --os linux -p:PublishSingleFile=true -o publish/linux-x64 + - name: Publish for Windows x64 + run: dotnet publish Capy64/Capy64.csproj -c Release --no-self-contained -a x64 --os win -p:PublishSingleFile=true -o publish/win-x64 + + - name: Upload Linux x64 artifact uses: actions/upload-artifact@v3.1.2 with: - name: Publish - path: publish/** + name: Linux-x64 + path: publish/linux-x64/** + if-no-files-found: error + - name: Upload Windows x64 artifact + uses: actions/upload-artifact@v3.1.2 + with: + name: Windows-x64 + path: publish/win-x64/** if-no-files-found: error