Fixed dotnet nuget add to work in non-idempotent environments
Nightly Build and Release / Build and Release Nightly (push) Failing after 11s

This commit is contained in:
qwsdcvghyu89
2026-06-05 01:06:32 +10:00
parent 2490fb260d
commit 02a65a6ce0
+4 -7
View File
@@ -22,14 +22,11 @@ jobs:
with: with:
dotnet-version: '11.0.100-preview.4.26230.115' dotnet-version: '11.0.100-preview.4.26230.115'
# NEW: Authenticate with your private Gitea NuGet registry # Authenticate with your private Gitea NuGet registry
- name: Add Gitea NuGet Source - name: Add Gitea NuGet Source
run: > run: |
dotnet nuget add source "https://git.main.qwsdcvghyu.com/api/packages/riley/nuget/index.json" dotnet nuget remove source "GiteaRegistry" || true
--name "GiteaRegistry" dotnet nuget add source "https://git.main.qwsdcvghyu.com/api/packages/riley/nuget/index.json" --name "GiteaRegistry" --username "riley" --password "${{ secrets.PACKAGES_KEY }}" --store-password-in-clear-text
--username "riley"
--password "${{ secrets.PACKAGES_KEY }}"
--store-password-in-clear-text
- name: 'Execute .NET Publish Target' - name: 'Execute .NET Publish Target'
run: dotnet build aeqw89.tools.Publish/aeqw89.tools.Publish.csproj -t:PublishAll run: dotnet build aeqw89.tools.Publish/aeqw89.tools.Publish.csproj -t:PublishAll