Skip to content

Commit

Permalink
fix packaging
Browse files Browse the repository at this point in the history
  • Loading branch information
mmsmits committed Nov 21, 2023
1 parent 6560882 commit 75db49c
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions build/templates/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,23 @@ steps:
- powershell: |
Write-Host "Determining if version suffix should be used"
[string]$useVersionSuffix = 'true'
if ([string]::IsNullOrEmpty($VersionSuffix))
[string]$versionSuffix = '$(VersionSuffix)'
Write-Host "Version Suffix: $versionSuffix"
if ([string]::IsNullOrEmpty($versionSuffix))
{
$useVersionSuffix = 'false'
}
Write-Host "Use Version Suffix: $useVersionSuffix"
Write-Host "##vso[task.setvariable variable=UseVersionSuffix]$useVersionSuffix"
displayName: 'Determine version suffix use'
displayName: 'Determine version suffix use for packaging'
# Package nugets
- script: dotnet pack --no-build --configuration $(buildConfiguration) --version-suffix $(build.buildNumber) --output $(Build.artifactStagingDirectory)/packages
- script: dotnet pack --no-build --configuration $(buildConfiguration) --version-suffix $(VersionSuffix) --output $(Build.artifactStagingDirectory)/packages
displayName: 'dotnet pack $(buildConfiguration) with version suffix'
condition: and(succeeded(), eq(variables.UseVersionSuffix, 'true'))

Expand Down

0 comments on commit 75db49c

Please sign in to comment.