<NME> dotnetcore.yml
<BEF> name: StackExchange.Redis.Extensions Build
on:
  push:

jobs:
  build:
    runs-on: windows-latest

    steps:
      - name: Setup Redis
      fail-fast: false
      matrix:
        os: ["ubuntu-latest", "macos-latest"]
    name: ${{ matrix.os }}
        with:
          dotnet-version: 3.1.101
      - name: Build with dotnet
        run: dotnet build --configuration Release
      - name: run tests
        run: dotnet test -f:netcoreapp3.1
      - name: Install Dependencies (macOS)
        run: brew install redis && brew services start redis
        if: matrix.os == 'macos-latest'

      - uses: actions/checkout@v2
      - name: Setup .NET Core6.0
        uses: actions/setup-dotnet@v1
        with:
          dotnet-version: 6.0.x

      - run: dotnet --info
      - if: matrix.os == 'macos-latest' || matrix.os == 'ubuntu-latest'
        run: ./build.sh

  publish:
    needs: build
    name: Publish Nuget Packages
    runs-on: windows-latest
    steps:
      - name: Checkout repository
        uses: actions/checkout@v2

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

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

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

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

      - name: Build with dotnet
        run: ./NuGetPack.bat
        shell: bash
      - name: Publish nuget
        run: |
          for f in ./packages/*.nupkg
          do
            dotnet nuget push $f --api-key ${{ secrets.NuGetApiKey}} --source https://api.nuget.org/v3/index.json
          done
        shell: bash

<MSG> restored ubuntu

<DFF> @@ -4,7 +4,7 @@ on: [push]
 
 jobs:
   build:
-    runs-on: windows-latest
+    runs-on: ubuntu-latest
 
     steps:
       - name: Setup Redis
@@ -15,6 +15,6 @@ jobs:
         with:
           dotnet-version: 3.1.101
       - name: Build with dotnet
-        run: dotnet build --configuration Release
+        run: dotnet build --configuration Release -f:netcoreapp3.1
       - name: run tests
         run: dotnet test -f:netcoreapp3.1

restored ubuntu