Skip to content

Commit bb1d06c

Browse files
committed
add defaultpushsource
1 parent 44a92d1 commit bb1d06c

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

.github/workflows/build-natives.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,11 @@ jobs:
140140
-Source "${{ env.GITHUB_PACKAGES_FEED }}" `
141141
-ConfigFile "${{ github.workspace }}\Natives\NetCord.Natives\vcpkg-nuget.config"
142142
143+
# Tell NuGet to use this feed by default for push operations
144+
& $nugetPath config `
145+
-ConfigFile "${{ github.workspace }}\Natives\NetCord.Natives\vcpkg-nuget.config" `
146+
-Set defaultPushSource="${{ env.GITHUB_PACKAGES_FEED }}"
147+
143148
- name: Setup vcpkg (Nix)
144149
if: ${{ matrix.use-nix }}
145150
run: |
@@ -163,6 +168,11 @@ jobs:
163168
-Source "${{ env.GITHUB_PACKAGES_FEED }}" \
164169
-ConfigFile "${{ github.workspace }}/Natives/NetCord.Natives/vcpkg-nuget.config"
165170
171+
# Tell NuGet to use this feed by default for push operations
172+
mono "$NUGET_PATH" config \
173+
-ConfigFile "${{ github.workspace }}/Natives/NetCord.Natives/vcpkg-nuget.config" \
174+
-Set defaultPushSource="${{ env.GITHUB_PACKAGES_FEED }}"
175+
166176
- name: Setup .NET Core SDK (Windows)
167177
if: ${{ !matrix.use-nix }}
168178
uses: actions/setup-dotnet@c2fa09f4bde5ebb9d1777cf28262a3eb3db3ced7 # v5.2.0

0 commit comments

Comments
 (0)