Skip to content

Fixed bad overload. Bind should not take in a Func<Result> (#220) #101

Fixed bad overload. Bind should not take in a Func<Result> (#220)

Fixed bad overload. Bind should not take in a Func<Result> (#220) #101

name: Publish Ardalis.Result.AspNetCore and FluentValidation to Nuget.org
on:
workflow_dispatch:
push:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup .NET Core
uses: actions/setup-dotnet@v3
with:
dotnet-version: '7.x'
- name: Install dependencies
run: dotnet restore
- name: Build
run: dotnet build --configuration Release --no-restore
- name: Publish Ardalis.Result.AspNetCore to NuGet
run: |
rm -rf nuget/
dotnet pack --no-build src/Ardalis.Result.AspNetCore/Ardalis.Result.AspNetCore.csproj --configuration Release --output nuget
dotnet nuget push nuget/*.nupkg -k '${{ secrets.NUGET_API_KEY }}' --skip-duplicate -s https://api.nuget.org/v3/index.json
- name: Publish Ardalis.Result.FluentValidation to NuGet
run: |
rm -rf nuget/
dotnet pack --no-build src/Ardalis.Result.FluentValidation/Ardalis.Result.FluentValidation.csproj --configuration Release --output nuget
dotnet nuget push nuget/*.nupkg -k '${{ secrets.NUGET_API_KEY }}' --skip-duplicate -s https://api.nuget.org/v3/index.json