Skip to content

include readme in nuget packages #4

include readme in nuget packages

include readme in nuget packages #4

Workflow file for this run

name: "Deploy to NuGet"
on:
push:
branches: [ "main" ]
env:
PACKAGE_OUTPUT_DIR: ${{ github.workspace }}/output
jobs:
deploy:
name: 'Deploy'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore --configuration Release
- name: Pack
run: dotnet pack --no-restore --no-build --configuration Release --output ${{ env.PACKAGE_OUTPUT_DIR }}
- name: Push to NuGet
run: dotnet nuget push ${{ env.PACKAGE_OUTPUT_DIR }}/*.nupkg -k ${{ secrets.NUGET_AUTH_TOKEN }} -s https://api.nuget.org/v3/index.json --skip-duplicate