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

    # Install the .NET Core 3.1 SDK for build and test
    - 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.
        ls nuget

Update the release trigger to install .NET Core 2.1
Update the release trigger to install .NET Core 2.1

(This is so we can run the tests against netcoreapp2.1.)

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