From c1b309f8a557987d209504338ea9b46dfb15932d Mon Sep 17 00:00:00 2001 From: olebeck <31539311+olebeck@users.noreply.github.com> Date: Thu, 28 Jan 2021 11:34:52 +0100 Subject: [PATCH] Create dotnet.yml --- .github/workflows/dotnet.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/dotnet.yml diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml new file mode 100644 index 0000000..f941950 --- /dev/null +++ b/.github/workflows/dotnet.yml @@ -0,0 +1,31 @@ +name: .NET + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] +defaults: + run: + working-directory: ./Horse Isle Server + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Setup .NET + uses: actions/setup-dotnet@v1 + with: + dotnet-version: 5.0.x + - name: Restore dependencies + run: dotnet restore + - name: Build + run: dotnet publish --no-restore -c Release -r linux-x64 --self-contained true + - name: upload result + uses: actions/upload-artifact@v2 + with: + name: result + path: Horse Isle Server/HorseIsleServer/bin/