Skip to content

Version change

Version change #5

Workflow file for this run

name: Publish to NuGet
on:
push:
branches:
- main # or the branch of your choice
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: |
8.0.x
7.0.x
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore -c Release
# - name: Test
# run: dotnet test --no-build
- name: Pack
run: dotnet pack --no-build -c Release -o nupkg
- name: Publish
run: dotnet nuget push "nupkg/*.nupkg" -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json