Skip to content

Added parameter default value logic #11

Added parameter default value logic

Added parameter default value logic #11

Workflow file for this run

name: .NET NuGet Publish
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Full history required by Nerdbank.GitVersioning
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 9.0.x
- name: Install Nerdbank.GitVersioning
run: dotnet tool install --global nbgv
- name: Set Version
run: nbgv cloud
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore --configuration Release
- name: Test
run: dotnet test --no-build --configuration Release --verbosity normal
- name: Pack
run: dotnet pack --no-build --configuration Release --output nupkgs
- name: Push to NuGet
run: dotnet nuget push nupkgs/*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json --skip-duplicate
env:
DOTNET_SYSTEM_GLOBALIZATION_INVARIANT: 1