Improvement

October 29, 20201 Minute Read

NuGet supports API key option

You can now use the --api-key command line option for publishing NuGet packages. This change allows you to pass your authentication token directly instead of storing it in the nuget.config file. This feature is available for all plans.

yaml
    steps:
    - name: Publish
      run: |
        dotnet nuget push "*.nupkg" \
          --api-key $ \
          --source https://nuget.pkg.github.com/$

Learn more about NuGet and GitHub Packages.

Subscribe to our developer newsletter

Discover tips, technical guides, and best practices in our biweekly newsletter just for devs.

By submitting, I agree to let GitHub and its affiliates use my information for personalized communications, targeted advertising, and campaign effectiveness. See the GitHub Privacy Statement for more details.

NuGet supports API key option - GitHub Changelog