Skip to content

Collaborators: Regenerate nuget.org API key

Andreas Gullberg Larsen edited this page Sep 12, 2020 · 1 revision

Every year the nuget.org API keys expire and must be regenerated. A reminder email is sent out to the registered owners on nuget.org.

  • Log in to https://www.nuget.org/account/ApiKeys with an account that is admin of UnitsNet organization
  • Create or regenerate key with name AppVeyor for UnitsNet project
    • Expires in: 365 days
    • Package owner: UnitsNet
    • Select scopes: Push > Push new packages and package versions
    • Select packages > Glob pattern: * to include all UnitsNet packages
  • Copy the API key
  • Encrypt the API key by pasting it into https://ci.appveyor.com/tools/encrypt (log in with account that is admin of UnitsNet project)
  • Update appveyor.yml with the ENCRYPTED API key
deploy:
- provider: NuGet
  api_key:
    secure: Bc59XzyBNSWbOvxFp8Fyv2v5TVs5NY/rFnz/BA1lA7A35qrS3Ngrc8YFe/zuSXfF
  on:
    branch: master

- provider: NuGet
  api_key:
    secure: Bc59XzyBNSWbOvxFp8Fyv2v5TVs5NY/rFnz/BA1lA7A35qrS3Ngrc8YFe/zuSXfF
  on:
    branch: release/*