Publish NuGet Package #3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: | | |
dir | |
dir publish | |
dir publish/Core | |
dotnet nuget push ./publish/Core/*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json |