Remove need for manually adding NuGet feeds

Issue: #14
Signed-off-by: Ritchie Frodomar <alkalinethunder@gmail.com>
This commit is contained in:
Ritchie Frodomar 2024-10-23 16:21:50 -04:00
parent e8963a8aa7
commit 5039e44baf
No known key found for this signature in database
GPG key ID: 47384A02C174B15F
2 changed files with 8 additions and 4 deletions

View file

@ -16,8 +16,6 @@ build_base:
stage: build
image: cr.acidiclight.dev/docker-images/monogame-linux-build/dotnet-mgcb:latest
before_script:
- if (dotnet nuget list source | grep gitlab); then dotnet nuget remove source gitlab; fi
- dotnet nuget add source -n gitlab https://gitlab.acidiclight.dev/api/v4/projects/13/packages/nuget/index.json
- mkdir bin
script:
- dotnet build -c release src
@ -49,8 +47,6 @@ update_online_manual:
stage: deploy
image: cr.acidiclight.dev/docker-images/monogame-linux-build/dotnet-mgcb:latest
before_script:
- if (dotnet nuget list source | grep gitlab); then dotnet nuget remove source gitlab; fi
- dotnet nuget add source -n gitlab https://gitlab.acidiclight.dev/api/v4/projects/13/packages/nuget/index.json
- dotnet tool update -g docfx
script:
- export PATH="$PATH:$HOME/.dotnet/tools"

8
nuget.config Normal file
View file

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageSources>
<clear />
<add key="Nuget" value="https://api.nuget.org/v3/index.json" />
<add key="gitlab-acidiclight" value="https://gitlab.acidiclight.dev/api/v4/projects/13/packages/nuget/index.json" />
</packageSources>
</configuration>