From 3545bf35396009947baf04a12e65ead2bfe8ef90 Mon Sep 17 00:00:00 2001 From: Justin Chu Date: Thu, 22 May 2025 15:21:03 -0700 Subject: [PATCH 1/2] Update publish as a deployment job To use environments: https://learn.microsoft.com/en-us/azure/devops/pipelines/process/deployment-jobs?view=azure-devops --- .azure-pipelines/publish.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.azure-pipelines/publish.yml b/.azure-pipelines/publish.yml index 627b3dcdcf..096713bcc2 100644 --- a/.azure-pipelines/publish.yml +++ b/.azure-pipelines/publish.yml @@ -9,7 +9,7 @@ stages: - stage: Release dependsOn: [] jobs: - - job: onnxscript_publish + - deployment: onnxscript_publish environment: name: 'onnxscript-release' pool: From 496ac3e9863bda588de5d689adaa66fcd36d3f15 Mon Sep 17 00:00:00 2001 From: Justin Chu Date: Thu, 22 May 2025 15:23:11 -0700 Subject: [PATCH 2/2] Update publish.yml --- .azure-pipelines/publish.yml | 37 +++++++++++++++++++----------------- 1 file changed, 20 insertions(+), 17 deletions(-) diff --git a/.azure-pipelines/publish.yml b/.azure-pipelines/publish.yml index 096713bcc2..79172ce5ab 100644 --- a/.azure-pipelines/publish.yml +++ b/.azure-pipelines/publish.yml @@ -14,20 +14,23 @@ stages: name: 'onnxscript-release' pool: vmImage: 'ubuntu-latest' - steps: - - download: onnxscript-release - artifact: drop - - task: EsrpRelease@9 - displayName: 'ESRP Release' - inputs: - connectedservicename: esrp_release - keyvaultname: 'ortbuildkeyvault' - signcertname: 'esrpcodesign' - clientid: '53d54d02-978d-4305-8572-583cf6711c4f' - contenttype: PyPi - folderlocation: '$(Pipeline.Workspace)/onnxscript-release/drop' - owners: 'justinchu@microsoft.com' - approvers: 'grama@microsoft.com' - mainpublisher: AIFrameworks - usemanagedidentity: true - domaintenantid: '975f013f-7f24-47e8-a7d3-abc4752bf346' + strategy: + runOnce: + deploy: + steps: + - download: onnxscript-release + artifact: drop + - task: EsrpRelease@9 + displayName: 'ESRP Release' + inputs: + connectedservicename: esrp_release + keyvaultname: 'ortbuildkeyvault' + signcertname: 'esrpcodesign' + clientid: '53d54d02-978d-4305-8572-583cf6711c4f' + contenttype: PyPi + folderlocation: '$(Pipeline.Workspace)/onnxscript-release/drop' + owners: 'justinchu@microsoft.com' + approvers: 'grama@microsoft.com' + mainpublisher: AIFrameworks + usemanagedidentity: true + domaintenantid: '975f013f-7f24-47e8-a7d3-abc4752bf346'