@@ -11,35 +11,34 @@ jobs:
1111 - name : Checkout repository
1212 uses : actions/checkout@v1
1313 - name : Setup .NET Core @ Latest
14- uses : actions/setup-dotnet@v1
15- with :
16- dotnet-version : ' 3.1.x'
14+ uses : actions/setup-dotnet@v3
1715 env :
18- NUGET_AUTH_TOKEN : ${{ secrets.NUGET_AUTH_TOKEN }}
16+ NUGET_AUTH_TOKEN : ${{ secrets.NUGET_API_KEY }}
1917 - name : Build solution and generate NuGet package
2018 run : |
21- cd contentstack-utils-dotnet
2219 dotnet pack -c Release -o out
2320
2421 - name : Push generated package to GitHub registry
25- run : dotnet nuget push ./contentstack-utils-dotnet/out/*.nupkg --api-key $NUGET_AUTH_TOKEN --skip-duplicate --no-symbols true
22+ run : |
23+ cd out
24+ dotnet nuget push "contentstack.utils.*.nupkg" --api-key ${{ secrets.NUGET_API_KEY }} --skip-duplicate --no-symbols true --source https://api.nuget.org/v3/index.json
2625
2726 publish-git :
2827 runs-on : windows-latest
2928 steps :
3029 - name : Checkout repository
3130 uses : actions/checkout@v1
3231 - name : Setup .NET Core @ Latest
33- uses : actions/setup-dotnet@v1
32+ uses : actions/setup-dotnet@v3
3433 with :
35- dotnet-version : ' 3.1.x'
3634 source-url : https://nuget.pkg.github.com/Contentstack/index.json
3735 env :
3836 NUGET_AUTH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
3937 - name : Build solution and generate NuGet package
4038 run : |
41- cd contentstack-utils-dotnet
4239 dotnet pack -c Release -o out
4340
4441 - name : Push generated package to GitHub registry
45- run : dotnet nuget push ./contentstack-utils-dotnet/out/*.nupkg --api-key ${{ secrets.GITHUB_TOKEN }} --skip-duplicate --no-symbols true
42+ run : |
43+ cd out
44+ dotnet nuget push "contentstack.utils.*.nupkg" --api-key ${{ secrets.NUGET_API_KEY }} --skip-duplicate --no-symbols true --source https://api.nuget.org/v3/index.json
0 commit comments