Skip to content

Add back NuGet publish #90

Add back NuGet publish

Add back NuGet publish #90

Workflow file for this run

name: .NET Core
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup .NET Core
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.x
- name: Build with dotnet
run: dotnet build
- name: Test with dotnet
run: dotnet test --no-build /p:CollectCoverage=true /p:CoverletOutputFormat=lcov
- name: Publish Nuget
run: >
dotnet build -c Release &&
dotnet pack -c Release &&
dotnet nuget push ./src/bin/Release/*.nupkg -s https://api.nuget.org/v3/index.json -k ${{ secrets.NUGETAPIKEY }} --skip-duplicate