Update dotnet.yml #8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: .NET | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
build: | |
runs-on: windows-2019 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup MSBuild | |
uses: microsoft/setup-msbuild@v1 | |
- name: Setup NuGet | |
uses: NuGet/setup-nuget@v1.0.5 | |
- name: setup-msbuild | |
uses: microsoft/setup-msbuild@v1.1 | |
- name: Restore Packages | |
run: nuget restore desktopniko.sln | |
- name: Build solution | |
run: msbuild desktopniko.sln -t:rebuild -property:Configuration=Release | |
- name: Upload compiled application | |
uses: actions/upload-artifact@v3 | |
with: | |
name: desktopniko | |
path: D:\a\desktopniko\desktopniko\desktopniko\bin\Release\desktopniko.exe |