Create dotnet.yml #1
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
# 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 |