Is it worth also having an example of how to publish using GitHub Actions too?
name: Publish to NuGet
on:
push:
branches:
- main # Your default release branch
paths:
- 'src/**'
jobs:
publish:
name: Publish to NuGet
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup dotnet
uses: actions/setup-dotnet@v1
with:
dotnet-version: 3.1.100
- name: Publish
uses: rohith/publish-nuget@v2
#uses: brandedoutcast/[email protected]
with:
PROJECT_FILE_PATH: src/VSSDK.Helpers.15.0/VSSDK.Helpers.15.0.csproj
NUGET_KEY: ${{secrets.NUGET_API_KEY}} # nuget.org API key