Skip to content

Upgrade to .NET 10 and modernize codebase #45

Upgrade to .NET 10 and modernize codebase

Upgrade to .NET 10 and modernize codebase #45

Workflow file for this run

name: .NET Core
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-dotnet@v4
with:
global-json-file: "./global.json"
- run: dotnet restore
- run: dotnet build --configuration Release --no-restore
- run: dotnet test --no-build --configuration Release --verbosity normal
- run: dotnet pack --no-build --configuration Release --output .
- name: Publish nugets
if: github.event_name != 'pull_request'
run: |
dotnet nuget push *.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{secrets.NUGET_API_KEY}} --skip-duplicate --no-symbols