Skip to content

Update dotnet-desktop.yml #3

Update dotnet-desktop.yml

Update dotnet-desktop.yml #3

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
name: .NET Framework Desktop
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
strategy:
matrix:
configuration: [Debug, Release]
runs-on: windows-2019 # For a list of available runner types, refer to
# https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idruns-on
steps:
- uses: actions/checkout@v2
- name: Setup MSBuild
uses: microsoft/setup-msbuild@v1
- name: Setup NuGet
uses: NuGet/[email protected]
- name: setup-msbuild
uses: microsoft/[email protected]
- name: Restore Packages
run: nuget restore ExamplePostApp.sln
- name: Build solution
run: msbuild ExamplePostApp.sln -t:rebuild -property:Configuration=Release
- name: Upload Artifact
uses: actions/upload-artifact@v2
with:
name: assets-for-download
path: downloads