
name: Build
on: [push, pull_request]

env:
  DOTNET_NOLOGO: 1

jobs:
  windows:
    name: Windows
    runs-on: windows-latest
    steps:
      - name: Checkout
        uses: actions/checkout@v2

      - name: Setup .NET
        uses: actions/setup-dotnet@v1
        with:
          dotnet-version: 5.0.x

      - name: Clear NuGet Cache
        run: dotnet nuget locals all --clear

      - name: Restore
        run: dotnet restore src/ZeroLog.sln

      - name: Build
        run: dotnet build --configuration Release --no-restore src/ZeroLog.sln

      - name: Pack
        run: dotnet pack --configuration Release --no-build src/ZeroLog.sln

      - name: Test
        run: dotnet test --configuration Release --no-build src/ZeroLog.sln

      - name: Upload NuGet
        uses: actions/upload-artifact@v2
        with:
          name: NuGet
          path: output/*.nupkg


name: Build
on: [push, pull_request]

env:
  DOTNET_NOLOGO: 1

jobs:
  windows:
    name: Windows
    runs-on: windows-latest
    steps:
      - name: Checkout
        uses: actions/checkout@v2

      - name: Setup .NET
        uses: actions/setup-dotnet@v1
        with:
          dotnet-version: 5.0.x

      - name: Restore
        run: dotnet restore src/ZeroLog.sln

      - name: Build
        run: dotnet build --configuration Release --no-restore src/ZeroLog.sln

      - name: Pack
        run: dotnet pack --configuration Release --no-build src/ZeroLog.sln

      - name: Test
        run: dotnet test --configuration Release --no-build src/ZeroLog.sln

      - name: Upload NuGet
        uses: actions/upload-artifact@v2
        with:
          name: NuGet
          path: output/*.nupkg

Remove NuGet hack on the CI
Remove NuGet hack on the CI
