File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2828 - uses : actions/checkout@v3
2929
3030 - name : Setup .NET
31- uses : actions/setup-dotnet@v2
31+ uses : actions/setup-dotnet@v3
3232 with :
3333 dotnet-version : |
3434 6.0.x
@@ -50,16 +50,10 @@ jobs:
5050 - name : Add to GitHub Repo
5151 if : ${{ matrix.os == 'ubuntu-latest' && github.event_name != 'pull_request' }}
5252 run : |
53- nuget sources add -name github -Source https://nuget.pkg.github.com/Crequency/index.json -Username Crequency -Password ${{ secrets.GitHubToken }}
54-
55- - name : Install NuGet
56- if : ${{ matrix.os == 'ubuntu-latest' && github.event_name != 'pull_request' }}
57- uses : nuget/setup-nuget@v1
58- with :
59- nuget-version : " 6.x"
53+ dotnet nuget add source --username Crequency --password ${{ secrets.GITHUBTOKEN }} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/Crequency/index.json"
6054
6155 - name : Publish Package to GitHub and NuGet
6256 if : ${{ matrix.os == 'ubuntu-latest' && github.event_name != 'pull_request' }}
6357 run : |
64- nuget push ./Common.BasicHelper/bin/Release/*.nupkg -Source github -SkipDuplicate -Verbosity detailed
65- nuget push ./Common.BasicHelper/bin/Release/*.nupkg -Source https://api.nuget.org/v3/index.json -SkipDuplicate -ApiKey ${{ secrets.NugetKey }} -NoSymbol -Verbosity detailed
58+ dotnet nuget push " ./Common.BasicHelper/bin/Release/*.nupkg" --api-key ${{ secrets.GITHUBTOKEN }} --source "github" --skip-duplicate
59+ dotnet nuget push " ./Common.BasicHelper/bin/Release/*.nupkg" --api-key ${{ secrets.NUGETKEY }} --source " https://api.nuget.org/v3/index.json" --skip-duplicate --no-symbols
You can’t perform that action at this time.
0 commit comments