Skip to content

Commit

Permalink
build: simplify Nuget auth
Browse files Browse the repository at this point in the history
  • Loading branch information
Kieranties committed Dec 30, 2021
1 parent b8744d0 commit fb912c8
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,7 @@ variables:

steps:

# Configure NuGet
- pwsh: |
@('develop','release','AzurePipelines') | ForEach-Object{
dotnet nuget update source $_ -p $env:NUGET_KEY -u VssSessionToken --configfile nuget.config
}
condition: and(succeeded(), variables['nuget.key'])
displayName: 'Add api token to access nuget artifacts'
env:
NUGET_KEY: $(nuget.key)
- task: NuGetAuthenticate@0
displayName: 'Authenticate with nuget'

- template: crawler.build.yml@templates

0 comments on commit fb912c8

Please sign in to comment.