Skip to content

update nuget packages #32

update nuget packages

update nuget packages #32

Workflow file for this run

name: Publish NuGet package
on:
push:
branches: main
env:
BUILD_CONFIGURATION: Release
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/[email protected]
- name: Setup .NET Core SDK
uses: actions/[email protected]
with:
dotnet-version: 6.0.x
- name: Setup NuGet.exe for use with actions
uses: NuGet/[email protected]
- name: Build
run: dotnet build --configuration $BUILD_CONFIGURATION
- name: Test
run: dotnet test --no-build --configuration $BUILD_CONFIGURATION --collect:"XPlat Code Coverage"
- name: Code coverage
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}
- name: Pack
run: dotnet pack --no-build --configuration $BUILD_CONFIGURATION --output ./nupkgs
- name: Push NuGet package
env:
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}
run: dotnet nuget push ./nupkgs/*.nupkg --source https://api.nuget.org/v3/index.json --api-key $NUGET_API_KEY --skip-duplicate