Skip to content

Commit

Permalink
Update integration of internal NuGet feed
Browse files Browse the repository at this point in the history
  • Loading branch information
GeorgDangl committed May 10, 2024
1 parent 9c1960b commit a222c8a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 20 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/backend-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
16 changes: 0 additions & 16 deletions build/Build.cs
Original file line number Diff line number Diff line change
Expand Up @@ -136,22 +136,6 @@ void SendTeamsMessage(string title, string message, bool isError)
}
}

Target CreateNuGetConfigForInternalPackages => _ => _
.Requires(() => DanglInternalNuGetFeedReaderKey)
.Executes(() =>
{
var nuGetConfig = $@"<?xml version=""1.0"" encoding=""utf-8""?>
<configuration>
<packageSources>
<add key=""DanglMyGet"" value=""https://www.myget.org/F/dangl/api/v3/index.json"" protocolVersion=""3"" />
<add key=""DanglInternalMyGet"" value=""https://www.myget.org/F/dangl-internal/auth/{DanglInternalNuGetFeedReaderKey}/api/v3/index.json"" protocolVersion=""3"" />
</packageSources>
</configuration>
";

WriteAllText(RootDirectory / "NuGet.Config", nuGetConfig);
});

Target Clean => _ => _
.Before(Restore)
.Executes(() =>
Expand Down

0 comments on commit a222c8a

Please sign in to comment.