name: Build

on:
  push:

jobs:
  build:
    name: Build
    runs-on: ubuntu-latest
    steps:
    - name: Checkout
      uses: actions/checkout@v1
    - name: Setup .NET Core
      uses: actions/setup-dotnet@v1
      with:
        dotnet-version: 5.0.100
    - name: Build
      run: ./.build/build.sh
    - name: Upload build
      uses: actions/upload-artifact@v1
      with:
        name: NuGet
        path: .artifacts/

  release:
    name: Release
    needs: build
    runs-on: ubuntu-latest
    if: github.ref == 'refs/heads/master'
    steps:
    - name: Checkout
      uses: actions/checkout@v1
    - name: Setup .NET Core
      uses: actions/setup-dotnet@v1
      with:
        dotnet-version: 5.0.100
    - name: Download build
      uses: actions/download-artifact@v1
      with:
        name: NuGet
    - name: Release
      run: ./.build/release.sh ${{ secrets.GITHUB_TOKEN }} ${{ github.repository }} NuGet ${{ secrets.NUGET_TOKEN }}

name: Build

on:
  push:

jobs:
  build:
    name: Build
    runs-on: ubuntu-latest
    steps:
    - name: Checkout
      uses: actions/checkout@v1
    - name: Build
      run: ./.build/build.sh
    - name: Upload build
      uses: actions/upload-artifact@v1
      with:
        name: NuGet
        path: .artifacts/

  release:
    name: Release
    needs: build
    runs-on: ubuntu-latest
    if: github.ref == 'refs/heads/master'
    steps:
    - name: Checkout
      uses: actions/checkout@v1
    - name: Download build
      uses: actions/download-artifact@v1
      with:
        name: NuGet
    - name: Release
      run: ./.build/release.sh ${{ secrets.GITHUB_TOKEN }} ${{ github.repository }} NuGet ${{ secrets.NUGET_TOKEN }}

Remove dotnet version from github actions
Remove dotnet version from github actions
