From 73f10d3dfe3e9b4f2c1f17a78597fb44ed2a1ec5 Mon Sep 17 00:00:00 2001 From: Luna Zheng Date: Mon, 10 Jul 2023 12:17:56 +0800 Subject: [PATCH] Test --- azure-pipelines.yml | 33 --------------------------------- publish.yml | 41 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 41 insertions(+), 33 deletions(-) create mode 100644 publish.yml diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 8cb18f9..98eaf11 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -43,39 +43,6 @@ jobs: python -m mypy --ignore-missing-imports tests/ displayName: "Type Check" - - job: "Publish" - pool: - vmImage: "ubuntu-latest" - - steps: - - task: UsePythonVersion@0 - inputs: - versionSpec: "3.x" - - - script: | - curl -sSL https://install.python-poetry.org | python3 - - displayName: "Install Poetry" - - - script: | - poetry install - displayName: "Install dependencies" - - - script: | - poetry build - displayName: "Build" - - - task: EsrpRelease@2 - inputs: - ConnectedServiceName: "OM-ESRP-Release-Publishing" - Intent: "PackageDistribution" - ContentType: "PyPi" - PackageLocation: "dist" - Owners: "jizhen@microsoft.com" - Approvers: "jizhen@microsoft.com" - ServiceEndpointUrl: "https://api.esrp.microsoft.com" - MainPublisher: "OutlookMobileiOSESRPPublisher" - DomainTenantId: "72f988bf-86f1-41af-91ab-2d7cd011db47" - # Disable for now until we set up a testable Azure DevOps instance # - script: | # source bin/activate diff --git a/publish.yml b/publish.yml new file mode 100644 index 0000000..71f47da --- /dev/null +++ b/publish.yml @@ -0,0 +1,41 @@ +trigger: + tags: + include: + - "*" + +pool: + vmImage: "ubuntu-latest" + +jobs: + - job: "Publish" + pool: + vmImage: "ubuntu-latest" + + steps: + - task: UsePythonVersion@0 + inputs: + versionSpec: "3.x" + + - script: | + curl -sSL https://install.python-poetry.org | python3 - + displayName: "Install Poetry" + + - script: | + poetry install + displayName: "Install dependencies" + + - script: | + poetry build + displayName: "Build" + + - task: EsrpRelease@2 + inputs: + ConnectedServiceName: "OM-ESRP-Release-Publishing" + Intent: "PackageDistribution" + ContentType: "PyPi" + PackageLocation: "dist" + Owners: "jizhen@microsoft.com" + Approvers: "jizhen@microsoft.com" + ServiceEndpointUrl: "https://api.esrp.microsoft.com" + MainPublisher: "OutlookMobileiOSESRPPublisher" + DomainTenantId: "72f988bf-86f1-41af-91ab-2d7cd011db47"