<NME> dotnetcore.yml
<BEF> name: StackExchange.Redis.Extensions Build
on:
  push:
    branches:
      - nuget
    tags:
      - "*.*.*"
jobs:
  build:
    strategy:
      fail-fast: false
      matrix:
        os: ["ubuntu-latest", "macos-latest"]
    name: ${{ matrix.os }}
    runs-on: ${{ matrix.os }}
    steps:
      - name: Install Dependencies (Ubuntu)
        #uses: zhulik/redis-action@1.1.0
        run: sudo apt install redis-server
        if: matrix.os == 'ubuntu-latest'

      - 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:
    name: list on nuget
    runs-on: windows-latest
    steps:
      - name: Checkout repository
      - name: Checkout repository
        uses: actions/checkout@v2
        run: ./NuGetPack.bat
        shell: bash
      - name: Publish nuget
        run: |
          for f in ./packages/*.nupkg
          do
            curl -vX PUT -u "imperugo:${{ secrets.GHPackagesToken }}" -F package=@$f https://nuget.pkg.github.com/imperugo/
          done
        shell: bash

      - 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> trying nuget again

<DFF> @@ -15,7 +15,6 @@ jobs:
     runs-on: ${{ matrix.os }}
     steps:
       - name: Install Dependencies (Ubuntu)
-        #uses: zhulik/redis-action@1.1.0
         run: sudo apt install redis-server
         if: matrix.os == 'ubuntu-latest'
 
@@ -34,7 +33,7 @@ jobs:
         run: ./build.sh
 
   publish:
-    name: list on nuget
+    name: Publish Nuget Packages
     runs-on: windows-latest
     steps:
       - name: Checkout repository
@@ -43,9 +42,5 @@ jobs:
         run: ./NuGetPack.bat
         shell: bash
       - name: Publish nuget
-        run: |
-          for f in ./packages/*.nupkg
-          do
-            curl -vX PUT -u "imperugo:${{ secrets.GHPackagesToken }}" -F package=@$f https://nuget.pkg.github.com/imperugo/
-          done
+        run: dotnet nuget push ./packages/*.nupkg --api-key ${{ secrets.NuGetApiKey}} --source https://api.nuget.org/v3/index.json
         shell: bash

trying nuget again