name: Push packages to NuGet

on:
  release:
    types: [published]

jobs:

  release:
    runs-on: ubuntu-18.04
    env:
      DOTNET_NOLOGO: true

    steps:
    - name: Check out our repo
      uses: actions/checkout@v2

    # We need just the .NET Core 2.1 runtime for testing    
    - name: Setup .NET Core 2.1
      uses: actions/setup-dotnet@v1
      with:
        dotnet-version: 2.1.x

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

    - name: Build
      run: |
        dotnet build -c Release
        dotnet test -c Release
        mkdir nuget

    - name: Push to NuGet
      run: |
        dotnet pack -c Release -o $PWD/nuget
        # For now, just display the NuGet packages we'd push in reality.
        ls nuget

name: Push packages to NuGet

on:
  release:
    types: [published]

jobs:

  release:
    runs-on: ubuntu-18.04
    env:
      DOTNET_NOLOGO: true

    steps:
    - name: Check out our repo
      uses: actions/checkout@v2

    # We need just the .NET Core 2.1 runtime for testing    
    - name: Setup .NET Core 2.1
      uses: actions/setup-dotnet@v1
      with:
        dotnet-version: 2.1.x

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

    - name: Build
      run: |
        dotnet build -c Release
        dotnet test -c Release
        mkdir nuget

    - name: Push to NuGet
      run: |
        dotnet pack -c Release -o $PWD/nuget
        # For now, just display the NuGet packages we'd push in reality.
        for file in nuget/*.nupkg; do echo "Pushing $file"; done


Test per-file action for releases
Test per-file action for releases

Signed-off-by: Jon Skeet <8a9602d66334021c18cbf0bdb2fa15f4cb6de9df@google.com>
