Skip to content

Better value viewers: JSON #16 (#47) #2

Better value viewers: JSON #16 (#47)

Better value viewers: JSON #16 (#47) #2

Workflow file for this run

name: Publish NuGet
on:
push:
tags:
- 'v*'
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v5
- name: Setup .NET
uses: actions/setup-dotnet@v5
with:
dotnet-version: |
8.0.x
9.0.x
10.0.x
- name: Restore
run: dotnet restore
- name: Build
run: dotnet build -c Release --no-restore
- name: Pack
run: dotnet pack -c Release --no-build -o ./artifacts /p:Version=${GITHUB_REF_NAME#v}
- name: Push to NuGet.org
run: |
dotnet nuget push "./artifacts/*.nupkg" --api-key "${NUGET_API_KEY}" --source "https://api.nuget.org/v3/index.json" --skip-duplicate
dotnet nuget push "./artifacts/*.snupkg" --api-key "${NUGET_API_KEY}" --source "https://api.nuget.org/v3/index.json" --skip-duplicate
env:
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}