Skip to content

Use .NET 9 in workflow #2

Use .NET 9 in workflow

Use .NET 9 in workflow #2

Workflow file for this run

name: Release
on:
push:
branches: [ main ]
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup .NET 9.0
uses: actions/setup-dotnet@v2
with:
dotnet-version: 9.0.x
- name: Restore packages
run: dotnet restore
- name: Build
run: dotnet build -c Release
- name: Test
run: dotnet test --verbosity normal
- name: Package
run: dotnet pack -c Release
- name: Publish if version has changed
run: dotnet nuget push **/Release/*.nupkg -s https://www.nuget.org -k ${{ secrets.NUGET_KEY }} --skip-duplicate