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 - name: Build
run: dotnet build --no-restore run: dotnet build --no-restore
- name: Publish - name: Publish
run: dotnet publish -r linux-x64 run: dotnet publish -r linux-x64 --self-contained
- name: Upload a Build Artifact - name: Upload a Build Artifact
uses: actions/upload-artifact@v3.1.0 uses: actions/upload-artifact@v3.1.0
with: with:
# Artifact name # Artifact name
name: Linux build name: Linux build
# A file, directory or wildcard pattern that describes what to upload # 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) public static void Main(string[] args)
{ {
var isHost = args.Contains("--host"); var isHost = !args.Contains("--client");
// bool isHost = true; // bool isHost = true;
var game = new Mine2d(isHost); var game = new Mine2d(isHost);
game.Run(); game.Run();