Skip to content

Create publish

Create publish #6

Workflow file for this run

name: Publish NuGet Package
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-dotnet@v3
with:
dotnet-version: '9.0.x'
- run: dotnet restore
- run: dotnet build --configuration Release
- run: dotnet pack --configuration Release
- run: dotnet nuget push **/*.nupkg -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json --skip-duplicate