Skip to content

Commit

Permalink
ci: Adjust packages publish pool
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromelaban committed Sep 18, 2024
1 parent 312d528 commit d40a597
Show file tree
Hide file tree
Showing 4 changed files with 59 additions and 39 deletions.
31 changes: 18 additions & 13 deletions build/ci/.azure-devops-publish-nuget-dev.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,21 @@
jobs:
- deployment: 'Nuget'
displayName: 'Nuget Publish Dev'
environment: 'Uno UI Development'
strategy:
runOnce:
deploy:
steps:
- download: current
artifact: 'NuGet_Packages'
patterns: '**/.nupkg'
displayName: Download artifact WebApp

- template: templates/nuget-publish-dev.yml
- template: templates/nuget-publish-public.yml
pool:
vmImage: ${{ parameters.vmImage }}

steps:
- deployment: 'Nuget'
displayName: 'Nuget Publish Dev'
environment: 'Uno UI Development'
strategy:
runOnce:
deploy:
steps:
- download: current
artifact: 'NuGet_Packages'
patterns: '**/.nupkg'
displayName: Download artifact WebApp

- template: templates/nuget-publish-dev.yml
- template: templates/nuget-publish-public.yml

28 changes: 16 additions & 12 deletions build/ci/.azure-devops-publish-nuget-prod-dev.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
jobs:

- deployment: 'Nuget_Prod_Dev'
displayName: 'Nuget Publish Prod Dev'
environment: 'Uno UI Production'
strategy:
runOnce:
deploy:
steps:
- download: current
artifact: 'NuGet_Packages'
patterns: '**/.nupkg'
displayName: Download artifact WebApp
- template: templates/nuget-publish-dev.yml
pool:
vmImage: ${{ parameters.vmImage }}

steps:
- deployment: 'Nuget_Prod_Dev'
displayName: 'Nuget Publish Prod Dev'
environment: 'Uno UI Production'
strategy:
runOnce:
deploy:
steps:
- download: current
artifact: 'NuGet_Packages'
patterns: '**/.nupkg'
displayName: Download artifact WebApp
- template: templates/nuget-publish-dev.yml
33 changes: 19 additions & 14 deletions build/ci/.azure-devops-publish-nuget-prod.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,22 @@
jobs:

- deployment: 'Nuget_Prod_Nuget_Org'
displayName: 'Nuget Publish Prod NuGet.org'
environment: 'Uno UI Production'
strategy:
runOnce:
deploy:
steps:
- download: current
artifact: 'NuGet_Packages'
patterns: |
**/.nupkg
!*Private*.nupkg
displayName: Download artifact WebApp
- template: templates/nuget-publish-public.yml
pool:
vmImage: ${{ parameters.vmImage }}

steps:

- deployment: 'Nuget_Prod_Nuget_Org'
displayName: 'Nuget Publish Prod NuGet.org'
environment: 'Uno UI Production'
strategy:
runOnce:
deploy:
steps:
- download: current
artifact: 'NuGet_Packages'
patterns: |
**/.nupkg
!*Private*.nupkg
displayName: Download artifact WebApp
- template: templates/nuget-publish-public.yml

6 changes: 6 additions & 0 deletions build/ci/.azure-devops-stages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -242,15 +242,21 @@ stages:
dependsOn: packages_build
jobs:
- template: .azure-devops-publish-nuget-dev.yml
parameters:
vmImage: '$(windows2022HostedVMImage)'

- stage: Publish_Prod_Dev
condition: and(succeeded(), startsWith(variables['Build.SourceBranch'], 'refs/heads/release/'), not(eq(variables['build.reason'], 'PullRequest')))
dependsOn: packages_build
jobs:
- template: .azure-devops-publish-nuget-prod-dev.yml
parameters:
vmImage: '$(windows2022HostedVMImage)'

- stage: Publish_Prod_Public
condition: and(succeeded(), startsWith(variables['Build.SourceBranch'], 'refs/heads/release/'), not(eq(variables['build.reason'], 'PullRequest')))
dependsOn: Publish_Prod_Dev
jobs:
- template: .azure-devops-publish-nuget-prod.yml
parameters:
vmImage: '$(windows2022HostedVMImage)'

0 comments on commit d40a597

Please sign in to comment.