added artifact upload

This commit is contained in:
MasterGordon 2022-11-16 01:25:15 +01:00
parent f2c1886cee
commit 6ca5216ead
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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();