From 32c9098bbac3a0c10bc9a8e255b95f1b886c38ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=98=9F=E6=A2=A6StarsDream?= Date: Fri, 10 Mar 2023 21:43:25 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=B7=A5=E4=BD=9C=E6=B5=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/dotnet.yml | 39 ++++++++++++++++++++++++++++++++++++ 1 file changed, 39 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..6b94e04 --- /dev/null +++ b/.github/workflows/dotnet.yml @@ -0,0 +1,39 @@ +# This workflow will build a .NET project +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net + +name: .NET + +on: + push: + pull_request: + +jobs: + build: + + runs-on: windows-2022 + + steps: + - uses: actions/checkout@v3 + - name: Setup .NET + uses: actions/setup-dotnet@v3 + with: + dotnet-version: 8.0.x + - name: Restore dependencies + run: dotnet restore + - name: Build + run: dotnet publish + - name: Upload Client Artifact + uses: actions/upload-artifact@v3 + with: + path: Client/bin/Release/net8.0/win-x64/publish + name: Client + - name: Upload Windows ClientUI Artifact + uses: actions/upload-artifact@v3 + with: + path: ClientUI/bin/Release/net8.0-windows/win-x64/publish + name: ClientUI-win-x64 + - name: Upload Server Artifact + uses: actions/upload-artifact@v3 + with: + path: Server/bin/Release/net8.0/win-x64/publish + name: Server