Skip to content

Try to define the .NET Version. #450

Try to define the .NET Version.

Try to define the .NET Version. #450

Workflow file for this run

name: Nuget Build
on:
push:
branches:
- 'main'
pull_request:
branches:
- 'main'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4.2.2
- name: dotnet
uses: actions/setup-dotnet@v4.3.1
with:
dotnet-version: 8.0.x
- name: Create `global.json`
run: |
echo '{"sdk":{"version": "${{ steps.dotnet.outputs.dotnet-version }}"}}' > ./global.json
- name: test
timeout-minutes: 10
run: |
dotnet test --filter Category!=Dependencies
- name: pack
run: |
dotnet pack -c Release
- name: publish
run: |
dotnet nuget push **/*.nupkg --source 'https://api.nuget.org/v3/index.json' --skip-duplicate -k ${{ secrets.nuget }}