Skip to content

Publish NuGet Package #4

Publish NuGet Package

Publish NuGet Package #4

Workflow file for this run

name: Publish NuGet package
on:
workflow_dispatch:
push:
tags: [ 'release-*' ]
jobs:
publish:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: '7.0.x'
- name: Build for publish
run: dotnet publish -c Release
- name: Publish NuGet package
run: |
dotnet nuget push publish\Core\*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json