name: Develop (build -> test)

on:
  push:
    branches: [ develop ]
  pull_request:
    branches: [ develop ]

jobs:
  build:

    runs-on: ubuntu-latest

    steps:
    - uses: actions/checkout@v2

    - name: Setup .NET Core
      uses: actions/setup-dotnet@v1
      with:
        dotnet-version: 5.0.x

    - name: Install dependencies
      run: dotnet restore

    - name: Build
      run: dotnet build --configuration Release --no-restore

    - name: Test
      run: dotnet test --no-restore --verbosity normal


    # https://lukelowrey.com/use-github-actions-to-publish-nuget-packages/
    - name: Publish NogginAuth (Pre release)
      uses: brandedoutcast/publish-nuget@v2.5.2
      with:
          PROJECT_FILE_PATH: Noggin.NetCoreAuth/Noggin.NetCoreAuth.csproj
          NUGET_KEY: ${{secrets.NOGGINAUTH_NUGETAPIKEY}}
name: Develop (build -> test)

on:
  push:
    branches: [ develop ]
  pull_request:
    branches: [ develop ]

jobs:
  build:

    runs-on: ubuntu-latest

    steps:
    - uses: actions/checkout@v2

    - name: Setup .NET Core
      uses: actions/setup-dotnet@v1
      with:
        dotnet-version: 5.0.x

    - name: Install dependencies
      run: dotnet restore

    - name: Build
      run: dotnet build --configuration Release --no-restore

    - name: Test
      run: dotnet test --no-restore --verbosity normal


#    # https://lukelowrey.com/use-github-actions-to-publish-nuget-packages/
#    - name: Publish NogginAuth (Pre release)
#      uses: brandedoutcast/publish-nuget@v2.5.2
#      with:
#          PROJECT_FILE_PATH: Noggin.NetCoreAuth/Noggin.NetCoreAuth.csproj
#          NUGET_KEY: ${{secrets.NOGGINAUTH_NUGETAPIKEY}}
Remove nuget publish for now (doing it too often)
Remove nuget publish for now (doing it too often)

