From 6ca5216ead4bad125e3541fb66422d6866b254a8 Mon Sep 17 00:00:00 2001 From: MasterGordon Date: Wed, 16 Nov 2022 01:25:15 +0100 Subject: [PATCH] added artifact upload --- .github/workflows/dotnet.yml | 4 ++-- Mine2d/Program.cs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 7beca10..3cf05bb 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -22,11 +22,11 @@ jobs: - name: Build run: dotnet build --no-restore - name: Publish - run: dotnet publish -r linux-x64 + run: dotnet publish -r linux-x64 --self-contained - name: Upload a Build Artifact uses: actions/upload-artifact@v3.1.0 with: # Artifact name name: Linux build # A file, directory or wildcard pattern that describes what to upload - path: bin/Debug/net6.0/linux-x64/publish/asdlteroids + path: Mine2d/bin/Debug/net6.0/linux-x64/publish/Mine2d diff --git a/Mine2d/Program.cs b/Mine2d/Program.cs index b6399bc..625c8e6 100644 --- a/Mine2d/Program.cs +++ b/Mine2d/Program.cs @@ -4,7 +4,7 @@ public class Program { public static void Main(string[] args) { - var isHost = args.Contains("--host"); + var isHost = !args.Contains("--client"); // bool isHost = true; var game = new Mine2d(isHost); game.Run();