name: CI on: workflow_dispatch: push: branches: - master pull_request: branches: - master jobs: build: env: BUILD_CONFIG: 'Release' SOLUTION: 'MySolution.sln' runs-on: windows-latest steps: - uses: actions/checkout@v2 - name: Setup NuGet uses: NuGet/setup-nuget@v1.0.5 - name: Restore dependencies run: nuget restore ${SOLUTION} - name: Setup .NET uses: actions/setup-dotnet@v1 with: dotnet-version: 5.0.x - name: Build run: dotnet build DarkUI.sln --configuration Release - name: Build Config run: dotnet build ${SOLUTION} --configuration ${BUILD_CONFIG} --no-restore