File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -14,15 +14,17 @@ jobs:
1414 - name : Setup .NET Core @ Latest
1515 uses : actions/setup-dotnet@v1
1616 env :
17- NUGET_AUTH_TOKEN : ${{ secrets.NUGET_AUTH_TOKEN }}
17+ NUGET_AUTH_TOKEN : ${{ secrets.NUGET_API_KEY }}
1818 - name : Build solution and generate NuGet package
1919 run : |
2020 dotnet pack -c Release -o out
2121
2222 - name : Push generated package to GitHub registry
2323 run : |
2424 cd out
25- dotnet nuget push "contentstack.management.csharp.*.nupkg" --api-key $NUGET_API_KEY --skip-duplicate --no-symbols true --source https://api.nuget.org/v3/index.json
25+ dotnet nuget push "contentstack.management.csharp.*.nupkg" --api-key $NUGET_AUTH_TOKEN --skip-duplicate --no-symbols true --source https://api.nuget.org/v3/index.json
26+ env :
27+ NUGET_AUTH_TOKEN : ${{ secrets.NUGET_API_KEY }}
2628
2729 publish-git :
2830 runs-on : windows-latest
4244 - name : Push generated package to GitHub registry
4345 run : |
4446 cd out
45- dotnet nuget push "contentstack.management.csharp.*.nupkg" --api-key $NUGET_API_KEY --skip-duplicate --no-symbols true --source https://api.nuget.org/v3/index.json
47+ dotnet nuget push "contentstack.management.csharp.*.nupkg" --api-key $NUGET_AUTH_TOKEN --skip-duplicate --no-symbols true --source https://api.nuget.org/v3/index.json
48+ env :
49+ NUGET_AUTH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments