Skip to content

Commit fdbf997

Browse files
authored
Update NuGet source management in workflow
1 parent e51eef4 commit fdbf997

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

.github/workflows/publish-dotnet.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,15 @@ jobs:
6565
run: |
6666
cd dotnet/mcpb
6767
dotnet pack -c Release --no-build --output ./artifacts
68-
68+
- name: Remove old v2 NuGet source if exists
69+
run: dotnet nuget remove source nuget.org || true
70+
71+
- name: Add v3 NuGet source
72+
run: dotnet nuget add source https://api.nuget.org/v3/index.json --name nuget.org
73+
74+
- name: List NuGet sources (for debugging)
75+
run: dotnet nuget list source
76+
6977
- name: Publish to NuGet
7078
run: |
7179
cd dotnet/mcpb

0 commit comments

Comments
 (0)