diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml new file mode 100644 index 0000000..98b8f8a --- /dev/null +++ b/.github/workflows/dotnet.yml @@ -0,0 +1,35 @@ +# 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@v4 + + - name: Setup MSBuild + uses: microsoft/setup-msbuild@v2 + + - 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@v4 + with: + name: wpf-app + path: | + bin\Release\OPL_WpfApp.exe