Skip to content

returngis/tour-of-heroes-nuget

Repository files navigation

Tour of heroes nuget package

This is a nuget package for the Tour of heroes API in other to show how to publish a nuget package to GitHub packages.

Create a classic Personal Access Token

GitHub Packages only supports authentication using a personal access token (classic)

  1. Go to your GitHub settings > tokens and create a new token with the write:packages scope.

  1. Copy the generated token and save it somewhere safe.

  2. Add the token to your nuget.config file

cat <<EOF > nuget.config
<?xml version="1.0" encoding="utf-8"?>
<configuration>
    <packageSources>
        <clear />
        <add key="github" value="https://nuget.pkg.github.com/returngis/index.json" />
    </packageSources>
    <packageSourceCredentials>
        <github>
            <add key="Username" value="0gis0" />
            <add key="ClearTextPassword" value="$PAT" />
        </github>
    </packageSourceCredentials>
</configuration>
EOF

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors 3

  •  
  •  
  •