Skip to content

Commit

Permalink
[release] Move NuGet feed from CDPx to DART (microsoft#22363)
Browse files Browse the repository at this point in the history
* [release] Move NuGet feed from CDPx to DART

Since the release pipeline is run in the DART Azure DevOps project, we
no longer need to authenticate against it. The build agent will be
running with a token that allows access.

* restore nuget.config

* We should still authenticate against this org, not a specific feed

* rename the feed

* whoa whoa whoa okay

* [ci]Conditionally add labs package except in Dart (microsoft#22294)

* Propagate Jaime's change

Co-authored-by: Jaime Bernardo <[email protected]>
  • Loading branch information
DHowett and jaimecbernardo authored Nov 30, 2022
1 parent 5e2df77 commit 57c5575
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .pipelines/release-nuget.config
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<configuration>
<packageSources>
<clear />
<add key="PowerToysCDPX_Feed" value="https://github-private.pkgs.visualstudio.com/microsoft/_packaging/PowerToysCDPX_Feed/nuget/v3/index.json" />
<add key="PowerToysDependencies" value="https://microsoft.pkgs.visualstudio.com/Dart/_packaging/PowerToysDependencies/nuget/v3/index.json" />
</packageSources>
<disabledPackageSources>
<clear />
Expand Down
2 changes: 0 additions & 2 deletions .pipelines/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,6 @@ jobs:
version: '6.x'

- task: NuGetAuthenticate@0
inputs:
nuGetServiceConnections: PowerToysCDPxFeed

- task: NuGetToolInstaller@1
displayName: Use NuGet Installer latest
Expand Down
5 changes: 5 additions & 0 deletions nuget.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<configuration>
<config>
<clear />
</config>
</configuration>
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@
<ErrorOnDuplicatePublishOutputFiles>false</ErrorOnDuplicatePublishOutputFiles>
</PropertyGroup>

<!-- Needed for CommunityToolkit.Labs.WinUI.SettingsControls. -->
<PropertyGroup>
<!-- Needed for CommunityToolkit.Labs.WinUI.SettingsControls, on local builds and PR CI. -->
<PropertyGroup Condition="'$(IsPipeline)' == ''">
<RestoreAdditionalProjectSources>https://pkgs.dev.azure.com/dotnet/CommunityToolkit/_packaging/CommunityToolkit-Labs/nuget/v3/index.json</RestoreAdditionalProjectSources>
</PropertyGroup>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
<OutputPath>..\..\..\x64\Release\SettingsTest\</OutputPath>
</PropertyGroup>

<!-- Needed for CommunityToolkit.Labs.WinUI.SettingsControls. -->
<PropertyGroup>
<!-- Needed for CommunityToolkit.Labs.WinUI.SettingsControls, on local builds and PR CI. -->
<PropertyGroup Condition="'$(IsPipeline)' == ''">
<RestoreAdditionalProjectSources>https://pkgs.dev.azure.com/dotnet/CommunityToolkit/_packaging/CommunityToolkit-Labs/nuget/v3/index.json</RestoreAdditionalProjectSources>
</PropertyGroup>

Expand Down

0 comments on commit 57c5575

Please sign in to comment.