Skip to content

Commit

Permalink
Merge pull request #18241 from unoplatform/dev/jela/publish-pool
Browse files Browse the repository at this point in the history
ci: Adjust packages publish pool
  • Loading branch information
jeromelaban committed Sep 18, 2024
2 parents 312d528 + e36a39f commit 7c9e257
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 2 deletions.
4 changes: 4 additions & 0 deletions build/ci/.azure-devops-publish-nuget-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ jobs:
- deployment: 'Nuget'
displayName: 'Nuget Publish Dev'
environment: 'Uno UI Development'

pool:
vmImage: ${{ parameters.vmImage }}

strategy:
runOnce:
deploy:
Expand Down
5 changes: 4 additions & 1 deletion build/ci/.azure-devops-publish-nuget-prod-dev.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
jobs:

- deployment: 'Nuget_Prod_Dev'
displayName: 'Nuget Publish Prod Dev'
environment: 'Uno UI Production'

pool:
vmImage: ${{ parameters.vmImage }}

strategy:
runOnce:
deploy:
Expand Down
4 changes: 3 additions & 1 deletion build/ci/.azure-devops-publish-nuget-prod.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
jobs:

- deployment: 'Nuget_Prod_Nuget_Org'
displayName: 'Nuget Publish Prod NuGet.org'
environment: 'Uno UI Production'
pool:
vmImage: ${{ parameters.vmImage }}

strategy:
runOnce:
deploy:
Expand Down
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 7c9e257

Please sign in to comment.