summaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorKN4CK3R <admin@oldschoolhack.me>2022-08-09 16:36:49 +0200
committerGitHub <noreply@github.com>2022-08-09 17:36:49 +0300
commit7009eb9a24a800b7fb884b54f81885815ea4d286 (patch)
tree430bba7d00e8b92719646537413db06004fae0c7 /docs
parent920481340b3d3c384c16296be52ca187ee8b0e0b (diff)
downloadgitea-7009eb9a24a800b7fb884b54f81885815ea4d286.tar.gz
gitea-7009eb9a24a800b7fb884b54f81885815ea4d286.zip
Add support for NuGet API keys (#20721)
* Add support for NuGet API key. * lint * Apply suggestions from code review Co-authored-by: delvh <dev.lh@web.de> Co-authored-by: delvh <dev.lh@web.de> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> Co-authored-by: Lauris BH <lauris@nix.lv>
Diffstat (limited to 'docs')
-rw-r--r--docs/content/doc/packages/nuget.en-us.md2
1 files changed, 2 insertions, 0 deletions
diff --git a/docs/content/doc/packages/nuget.en-us.md b/docs/content/doc/packages/nuget.en-us.md
index a4435fa99f..6c8aaa70af 100644
--- a/docs/content/doc/packages/nuget.en-us.md
+++ b/docs/content/doc/packages/nuget.en-us.md
@@ -47,6 +47,8 @@ For example:
dotnet nuget add source --name gitea --username testuser --password password123 https://gitea.example.com/api/packages/testuser/nuget/index.json
```
+You can add the source without credentials and use the [`--api-key`](https://docs.microsoft.com/en-us/dotnet/core/tools/dotnet-nuget-push) parameter when publishing packages. In this case you need to provide a [personal access token]({{< relref "doc/developers/api-usage.en-us.md#authentication" >}}).
+
## Publish a package
Publish a package by running the following command: