Skip to content

Commit

Permalink
update dotnet.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
TPexcoTblu authored Aug 19, 2024
1 parent 596fb5c commit 4e1671b
Showing 1 changed file with 23 additions and 18 deletions.
41 changes: 23 additions & 18 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
@@ -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"

0 comments on commit 4e1671b

Please sign in to comment.