Skip to content

Commit 541a2f5

Browse files
authored
support gh nuget (#817)
1 parent 8575548 commit 541a2f5

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/nuget.yaml

+8-1
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,11 @@ jobs:
3939
run: dotnet pack -c Release src/nuget.proj -o pkg --include-symbols
4040

4141
- name: dotnet nuget push
42-
run: dotnet nuget push pkg\*.nupkg -s https://www.nuget.org/ -k ${{ secrets.nuget_api_key }}
42+
run: |
43+
dotnet nuget push pkg\*.nupkg -s https://nuget.pkg.github.com/$env:GITHUB_REPOSITORY_OWNER -k ${{ secrets.GITHUB_TOKEN }}
44+
dotnet nuget push pkg\*.nupkg -s https://www.nuget.org/ -k ${{ secrets.nuget_api_key }}
45+
46+
- name: Delete Package Versions
47+
uses: actions/delete-package-versions@v2
48+
with:
49+
min-versions-to-keep: 10

0 commit comments

Comments
 (0)