Skip to content

Instantly share code, notes, and snippets.

@olakusibe
olakusibe / github-actions-push-nuget-to-github-packages.md
Last active August 18, 2021 13:56
How to use Github Actions to Push Nuget packages to Github Packages

Add RepositoryUrl property to the project .csproj file

<Project Sdk="Microsoft.NET.Sdk">

 <PropertyGroup>
   <TargetFramework>net5.0</TargetFramework>
   <RepositoryUrl>https://github.com/PATH/TO/REPOSITORY</RepositoryUrl>
 </PropertyGroup>

</Project>