Skip to content

Commit 13cc612

Browse files
authored
Update dotnet-desktop.yml
1 parent 6954c85 commit 13cc612

File tree

1 file changed

+10
-43
lines changed

1 file changed

+10
-43
lines changed

.github/workflows/dotnet-desktop.yml

Lines changed: 10 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: .NET Core Desktop
1+
name: .NET
22

33
on:
44
push:
@@ -7,52 +7,19 @@ on:
77
branches: [ "master" ]
88

99
jobs:
10-
1110
build:
1211

13-
runs-on: windows-latest # For a list of available runner types, refer to
14-
# https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions #jobsjob_idruns-on
15-
16-
env:
17-
Solution_Name: Invo2_patcher.sln # Replace with your solution name.
18-
Configuration: Release
19-
Platform: Any CPU
12+
runs-on: windows-latest
2013

2114
steps:
22-
- name: Checkout
23-
uses: actions/checkout@v4
24-
with:
25-
fetch-depth: 0
26-
27-
# Install the .NET Core workload
28-
- name: Install .NET Core
15+
- uses: actions/checkout@v4
16+
- name: Setup .NET
2917
uses: actions/setup-dotnet@v4
3018
with:
3119
dotnet-version: 8.0.x
32-
33-
# Add MSBuild to the PATH: https://github.com/microsoft/setup-msbuild
34-
- name: Setup MSBuild.exe
35-
uses: microsoft/setup-msbuild@v2
36-
37-
# Restore the application to populate the obj folder with RuntimeIdentifiers
38-
- name: Restore the application
39-
run: dotnet restore $env:Solution_Name
40-
41-
# Build the application
42-
- name: Build the application
43-
run: dotnet build $env:Solution_Name --configuration $env:Configuration --no-restore
44-
env:
45-
Configuration: ${{ matrix.configuration }}
46-
47-
# Publish the application
48-
- name: Publish the application
49-
run: dotnet publish $env:Solution_Name --configuration $env:Configuration --no-build --output ./publish
50-
env:
51-
Configuration: ${{ matrix.configuration }}
52-
53-
# Upload the build artifacts
54-
- name: Upload build artifacts
55-
uses: actions/upload-artifact@v4
56-
with:
57-
name: Build Artifacts
58-
path: ./publish
20+
- name: Restore dependencies
21+
run: dotnet restore
22+
- name: Build
23+
run: dotnet build -c Release --no-restore
24+
- name: Test
25+
run: dotnet test --no-build --verbosity normal

0 commit comments

Comments
 (0)