title: How to push nuget package in GitHub actions
body: <p>I am trying to use GitHub actions to generate a NuGet package from my project and push it to the (private) GitHub registry. </p>
  
  <p>My script ([NAME] fields redacted):</p>
  
  <pre class="lang-sh prettyprint-override"><code>name: Update NuGet
  
  on: [push]
  
  jobs:
    build:
      runs-on: ubuntu-latest
  
      name: Update NuGet 
      steps:
        - uses: actions/checkout@master
        - uses: actions/setup-dotnet@v1
          with:
            dotnet-version: '2.2.105'
        - name: Package Release
          run: |  
            cd [SOLUTION_FOLDER]
            dotnet pack -c Release -o out
        - name: Publish Nuget to GitHub registry
          run: dotnet nuget push ./[SOLUTION_FOLDER]/[PROJECT_FOLDER]/out/$(ls ./[SOLUTION_FOLDER]/[PROJECT_FOLDER]/out) -s https://nuget.pkg.github.com/[USERNAME]/index.json -k ${GITHUB_TOKEN}  
          env:
            GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} 
  </code></pre>
  
  <p>Log output:</p>
  
  <pre><code>info : Pushing [PROJECT_FOLDER].3.4.23.nupkg to 'https://nuget.pkg.github.com/[USERNAME]'...
  info :   PUT https://nuget.pkg.github.com/[USERNAME]/
  info : An error was encountered when fetching 'PUT https://nuget.pkg.github.com/[USERNAME]/'. The request will now be retried.
  info : An error occurred while sending the request.
  info :   The server returned an invalid or unrecognized response.
  info :   PUT https://nuget.pkg.github.com/[USERNAME]/
  info : An error was encountered when fetching 'PUT https://nuget.pkg.github.com/[USERNAME]/'. The request will now be retried.
  info : An error occurred while sending the request.
  info :   The server returned an invalid or unrecognized response.
  info :   PUT https://nuget.pkg.github.com/[USERNAME]/
  error: An error occurred while sending the request.
  error:   The server returned an invalid or unrecognized response.
  ##[error]Process completed with exit code 1.
  </code></pre>
  
  <p>This is the coresponding GitHub issue (with a workaround option): <a href="https://github.com/NuGet/Home/issues/8580" rel="noreferrer">https://github.com/NuGet/Home/issues/8580</a></p>