support gh nuget (#817)
This commit is contained in:
9
.github/workflows/nuget.yaml
vendored
9
.github/workflows/nuget.yaml
vendored
@@ -39,4 +39,11 @@ jobs:
|
|||||||
run: dotnet pack -c Release src/nuget.proj -o pkg --include-symbols
|
run: dotnet pack -c Release src/nuget.proj -o pkg --include-symbols
|
||||||
|
|
||||||
- name: dotnet nuget push
|
- name: dotnet nuget push
|
||||||
run: dotnet nuget push pkg\*.nupkg -s https://www.nuget.org/ -k ${{ secrets.nuget_api_key }}
|
run: |
|
||||||
|
dotnet nuget push pkg\*.nupkg -s https://nuget.pkg.github.com/$env:GITHUB_REPOSITORY_OWNER -k ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
dotnet nuget push pkg\*.nupkg -s https://www.nuget.org/ -k ${{ secrets.nuget_api_key }}
|
||||||
|
|
||||||
|
- name: Delete Package Versions
|
||||||
|
uses: actions/delete-package-versions@v2
|
||||||
|
with:
|
||||||
|
min-versions-to-keep: 10
|
||||||
|
|||||||
Reference in New Issue
Block a user