Skip to content

Commit

Permalink
Merge branch 'release/5.0.0-beta3' into release/5.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
marcovisserFurore committed Feb 17, 2023
2 parents ee9f1e4 + 681f8b2 commit 462cee4
Show file tree
Hide file tree
Showing 3 changed files with 208 additions and 21 deletions.
42 changes: 26 additions & 16 deletions build/azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ stages:
displayName: 'Use .NET Core sdk $(NET_CORE_SDK)'
inputs:
version: $(NET_CORE_SDK)
- task: NuGetToolInstaller@1
inputs:
versionSpec: '6.4.0'
- task: DotNetCoreCLI@2
displayName: Restore
inputs:
Expand Down Expand Up @@ -98,7 +101,24 @@ stages:
configurationToPack: $(buildConfiguration)
nobuild: true
verbosityPack: Normal

- powershell: |
if ([string]::IsNullOrEmpty($Env:CurrentSuffix))
{
$version = $Env:CurrentVersion
}
else
{
$version = "$Env:CurrentVersion-$Env:CurrentSuffix"
}
Write-Host "Pack Hl7.Fhir.Specification.* with version $version"
nuget pack ./src/hl7.fhir.specification.nuspec -properties sdkversion=$version`;fhirrelease=STU3 -OutputDirectory $(Build.ArtifactStagingDirectory)
nuget pack ./src/hl7.fhir.specification.nuspec -properties sdkversion=$version`;fhirrelease=R4 -OutputDirectory $(Build.ArtifactStagingDirectory)
nuget pack ./src/hl7.fhir.specification.nuspec -properties sdkversion=$version`;fhirrelease=R4B -OutputDirectory $(Build.ArtifactStagingDirectory)
nuget pack ./src/hl7.fhir.specification.nuspec -properties sdkversion=$version`;fhirrelease=R5 -OutputDirectory $(Build.ArtifactStagingDirectory)
name: packMetapackages
displayName: 'Pack NuGet Metapackages'
- ${{ if ne(variables['Build.Reason'], 'PullRequest') }}:
- template: codesign-nuget-packages.yml@templates
parameters:
Expand Down Expand Up @@ -243,8 +263,6 @@ stages:
- deployment: gitHub
displayName: GitHub Packages
environment: GitHub
variables:
GITHUB_PACKAGES_APIKEY: $(GitHubPushPackagesAPIKey) # key is set in UI of Azure Devops
strategy:
runOnce:
deploy:
Expand All @@ -269,19 +287,11 @@ stages:
runOnce:
deploy:
steps:
- download: current
artifact: NuGetPackages
displayName: Download artifact NuGetPackages
- task: NuGetCommand@2
displayName: 'NuGet Push packages'
inputs:
command: push
packagesToPush: '$(Agent.BuildDirectory)/NuGetPackages/*.*nupkg'
nuGetFeedType: external
publishFeedCredentials: NuGet
verbosityPush: normal
includeSymbols: true

- template: push-nuget-package.yml@templates
parameters:
artifact: 'NuGetPackages'
source: https://api.nuget.org/v3/index.json
apiKey: $(NUGET_APIKEY)
- deployment: relNotes
displayName: Release Notes
environment: NuGet
Expand Down
4 changes: 3 additions & 1 deletion build/pipeline-variables.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,6 @@
# Variables used during the whole pipeline.

variables:
isTagBranch: $[startswith(variables['Build.SourceBranch'], 'refs/tags/v')]
isTagBranch: $[startswith(variables['Build.SourceBranch'], 'refs/tags/v')]
GITHUB_PACKAGES_APIKEY: $(GitHubPushPackagesAPIKey) # key is set in UI of Azure Devops
NUGET_APIKEY: $(NuGetAPIKey) # key is set in UI of Azure Devops
Loading

0 comments on commit 462cee4

Please sign in to comment.