Skip to content

Commit 0f54156

Browse files
committed
Stop pushing .NET packages to GitHub packages
1 parent 9b727fe commit 0f54156

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

.github/workflows/publish-dotnet.yml

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Publish .NET Library to Package Repositories
1+
name: Publish .NET Library to NuGet
22

33
on:
44
release:
@@ -7,7 +7,7 @@ on:
77

88
jobs:
99
publish-prism:
10-
name: Build and publish Prism library to GitHub Packages and NuGet
10+
name: Build and publish Prism library to NuGet
1111
runs-on: ubuntu-latest
1212
permissions:
1313
contents: write
@@ -48,12 +48,5 @@ jobs:
4848
- name: Pack the project
4949
run: dotnet pack Prism.csproj --no-build -c Release --output ./nupkgs
5050

51-
- name: Publish to GitHub Packages
52-
run: dotnet nuget push "./nupkgs/*.nupkg" --source "github" --skip-duplicate
53-
env:
54-
NUGET_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
55-
5651
- name: Publish to NuGet
57-
run: dotnet nuget push "./nupkgs/*.nupkg" --source "nuget.org" --skip-duplicate
58-
env:
59-
NUGET_AUTH_TOKEN: ${{ secrets.NUGET_API_KEY }}
52+
run: dotnet nuget push "./nupkgs/*.nupkg" --source "https://api.nuget.org/v3/index.json" --api-key ${{ secrets.NUGET_API_KEY }} --skip-duplicate

0 commit comments

Comments
 (0)