AmagnoVirtualPrinter/.github/workflows/dotnet-desktop.yml
Marco Batzinger fb9f96d2b0 Adjusted main workflow file
added new Releases workflow
2021-03-09 15:23:28 +01:00

43 lines
No EOL
1,013 B
YAML

name: .NET Core Desktop
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
strategy:
matrix:
configuration: [Release]
runs-on: windows-latest
env:
Solution_Name: AmagnoVirtualPrinter.sln
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
# Install the .NET Core workload
- name: Install .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 5.0.x
# Add MSBuild to the PATH: https://github.com/microsoft/setup-msbuild
- name: Setup MSBuild.exe
uses: microsoft/setup-msbuild@v1
- name: Restore the application
run: msbuild $env:Solution_Name /t:Restore /p:Configuration=$env:Configuration
env:
Configuration: ${{ matrix.configuration }}
- name: Build solution
run: msbuild $env:Solution_Name /t:Rebuild /p:Configuration=$env:Configuration
env:
Configuration: ${{ matrix.configuration }}