Skip to content

Fix XML comment warning on .NET Framework #2

Fix XML comment warning on .NET Framework

Fix XML comment warning on .NET Framework #2

Workflow file for this run

# Publishes a .NET package to NuGet when a new tag is pushed.
name: Publish NuGet Package
on:
push:
tags: ['v*.*.*'] # fires on v0.1.0, v0.1.0-rc.1, etc.
workflow_dispatch:
jobs:
publish:
name: ".NET / Publish"
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
with: { fetch-depth: 0 }
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 9.0.x
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build -c Release --no-restore
- name: Pack
run: dotnet pack -c Release --no-build -o ./artifacts
- name: Publish to NuGet
run: |
Get-ChildItem -Path ./artifacts -Filter *.nupkg | ForEach-Object {
dotnet nuget push $_.FullName `
--api-key ${{ secrets.NUGET_API_KEY }} `
--source https://api.nuget.org/v3/index.json `
--skip-duplicate
}