Nefarius.Peripherals.Serial.../.github/workflows/publish-to-nuget.yml

31 lines
636 B
YAML

name: Publish Nuget Package
on:
push:
tags:
- v*
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup .Net SDK
uses: actions/setup-dotnet@v3
with:
dotnet-version: 8.x
- name: Build
run: dotnet build -c Release
- name: Make Nuget Packages
run: dotnet pack -c Release
- name: Publish To Nuget
run: dotnet nuget push bin/*.nupkg -k $NUGET_AUTH_TOKEN -s https://api.nuget.org/v3/index.json
env:
NUGET_AUTH_TOKEN: ${{ secrets.NUGET_API_KEY }}