diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 0ff349d..292cbd9 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -45,5 +45,7 @@ jobs: source-url: https://nuget.pkg.github.com/willzou/index.json env: NUGET_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}} - - name: 4.Publish the package to nuget.org + - name: 4.Add nuget.org + run: dotnet nuget add source https://api.nuget.org/v3/index.json -n nuget.org + - name: 5.Publish the package to nuget.org run: dotnet nuget push */bin/Release/*.nupkg -k ${{secrets.NUGET_TOKEN}} -s https://api.nuget.org/v3/index.json --skip-duplicate --no-symbols