From 4e1671b99fc91b88ba4a54e92ca0b3a10aa6bb74 Mon Sep 17 00:00:00 2001 From: Denis Rechkin <52599505+RechkinDenis@users.noreply.github.com> Date: Mon, 19 Aug 2024 17:45:54 +0300 Subject: [PATCH] update dotnet.yml --- .github/workflows/dotnet.yml | 41 ++++++++++++++++++++---------------- 1 file changed, 23 insertions(+), 18 deletions(-) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 1bd125b..e7ec4f3 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -1,28 +1,33 @@ -# 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 +name: EZRep Build on: push: - branches: [ "main" ] - pull_request: - branches: [ "main" ] + branches: main jobs: build: - runs-on: windows-2019 steps: - - uses: actions/checkout@v4 - - name: Setup .NET - uses: actions/setup-dotnet@v4 + - uses: actions/checkout@v2 + + - name: Setup MSBuild + uses: microsoft/setup-msbuild@v1 + + - uses: nuget/setup-nuget@v1 with: - dotnet-version: 4.7.2 - - name: Restore dependencies - run: dotnet restore - - name: Build - run: dotnet build --no-restore - - name: Test - run: dotnet test --no-build --verbosity normal + nuget-version: '5.x' + + - name: Navigate to Workspace + run: cd $GITHUB_WORKSPACE + + - name: Create Build Directory + run: mkdir _build + + + - name: Restore Packages + run: nuget restore CrossoutNicknamesCollector.sln + + - name: Build Solution + run: | + msbuild.exe CrossoutNicknamesCollector.sln /nologo /nr:false /p:DeployOnBuild=true /p:DeployDefaultTarget=WebPublish /p:WebPublishMethod=FileSystem /p:DeleteExistingFiles=True /p:platform="Any CPU" /p:configuration="Release" /p:PublishUrl="../_build"