Skip to content

Commit

Permalink
ensure nuget is in path
Browse files Browse the repository at this point in the history
  • Loading branch information
clairernovotny committed Apr 1, 2020
1 parent 4aeff96 commit bd9fd4d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,15 @@ steps:
projects: .\src\Humanizer.sln
arguments: -c $(BuildConfiguration)
displayName: Build


- task: NuGetToolInstaller@1

- pwsh: |
mkdir $(Build.ArtifactStagingDirectory)\Packages
$version = .\nbgv get-version -f json | ConvertFrom-Json
$nuspecs = gci .\NuSpecs\*.nuspec
foreach ($item in $nuspecs) {
nugetpack $($item.FullName) `
nuget pack $($item.FullName) `
-outputdirectory $(Build.ArtifactStagingDirectory)\Packages `
-basepath $(System.DefaultWorkingDirectory)\src\ `
-Properties "version=$($version.NuGetPackageVersion);RepositoryType=git;RepositoryCommit=$($version.GitCommitId);RepositoryUrl=https://github.com/Humanizr/Humanizer"
Expand Down

0 comments on commit bd9fd4d

Please sign in to comment.