fix: login to NuGet feed at build refs NOISSUE

This commit is contained in:
Simon Diesenreiter 2025-04-15 14:55:56 +02:00
parent 4d657cf887
commit f2472a3ea2
2 changed files with 10 additions and 3 deletions

View File

@ -57,6 +57,13 @@ jobs:
username: gitearobot
password: ${{ secrets.PACKAGE_GITEA_PAT }}
registry: git.disi.dev
- name: Login to HomeLab NuGet feed
uses: sersoft-gmbh/dotnet-nuget-login-action@v1
with:
registry-url: 'https://git.disi.dev/api/packages/HomeLab/nuget/index.json'
registry-name: HomeLab
username: gitearobot
password: ${{ secrets.PACKAGE_GITEA_PAT }}
- name: Build and publish
run: |
REPOSITORY_OWNER=$(echo "$GITHUB_REPOSITORY" | awk -F '/' '{print $1}' | tr '[:upper:]' '[:lower:]')

View File

@ -1,11 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageSources>
<!--To inherit the global NuGet package sources remove the <clear/> line below -->
<clear />
<add key="nuget" value="https://api.nuget.org/v3/index.json" />
<!--add key="gitea-projects" value="https://git.disi.dev/api/packages/Projects/nuget/index.json" /-->
<add key="gitea-homelab" value="https://git.disi.dev/api/packages/Homelab/nuget/index.json" />
<!--add key="gitea-artifacts" value="https://git.disi.dev/api/packages/Artifacts/nuget/index.json" /-->
<add key="HomeLab" value="https://git.disi.dev/api/packages/HomeLab/nuget/index.json" />
</packageSources>
</configuration>
</configuration>