Skip to content

Create dotnet.yml

Create dotnet.yml #1

Workflow file for this run

# 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
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Setup MSBuild
uses: microsoft/setup-msbuild@v1
- name: Restore NuGet packages
run: nuget restore "OPL WpfApp.sln"
- name: Build solution
run: msbuild /p:Configuration=Release /p:Platform="Any CPU" "OPL WpfApp.sln"
- name: Upload artifacts
uses: actions/upload-artifact@v2
with:
name: wpf-app
path: |
bin\Release\OPL_WpfApp.exe