From a222c8a0682cb663dee78c8913f2a3a18c1e9e68 Mon Sep 17 00:00:00 2001 From: Georg Dangl Date: Fri, 10 May 2024 10:29:22 +0200 Subject: [PATCH] Update integration of internal NuGet feed --- .github/workflows/backend-tests.yml | 6 ++---- build/Build.cs | 16 ---------------- 2 files changed, 2 insertions(+), 20 deletions(-) diff --git a/.github/workflows/backend-tests.yml b/.github/workflows/backend-tests.yml index 7771b3c..a7ff2b9 100644 --- a/.github/workflows/backend-tests.yml +++ b/.github/workflows/backend-tests.yml @@ -14,9 +14,7 @@ jobs: if: ${{ github.event.repository.owner.login == 'Dangl-IT' }} steps: - uses: actions/checkout@v1 - - name: Run './build.cmd CreateNuGetConfigForInternalPackages' - run: ./build.cmd CreateNuGetConfigForInternalPackages - env: - DanglInternalNuGetFeedReaderKey: ${{ secrets.DANGLINTERNALNUGETFEEDREADERKEY }} + - name: Configure Build Dependencies + run: dotnet nuget add source --username georgdangl --password ${{ secrets.FEEDZ_READER_API_KEY }} --store-password-in-clear-text --name "Dangl" "https://packages.dangl.dev/dangl-internal/nuget/index.json" - name: Run './build.cmd Coverage -Configuration Debug' run: ./build.cmd Coverage -Configuration Debug diff --git a/build/Build.cs b/build/Build.cs index 7920126..a1ba80b 100644 --- a/build/Build.cs +++ b/build/Build.cs @@ -136,22 +136,6 @@ void SendTeamsMessage(string title, string message, bool isError) } } - Target CreateNuGetConfigForInternalPackages => _ => _ - .Requires(() => DanglInternalNuGetFeedReaderKey) - .Executes(() => - { - var nuGetConfig = $@" - - - - - - -"; - - WriteAllText(RootDirectory / "NuGet.Config", nuGetConfig); - }); - Target Clean => _ => _ .Before(Restore) .Executes(() =>