Skip to content

Commit ca0cf3e

Browse files
authored
devops: use separate Release job for publishing (microsoft#2733)
1 parent c88f12a commit ca0cf3e

File tree

1 file changed

+19
-3
lines changed

1 file changed

+19
-3
lines changed

.azure-pipelines/publish.yml

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,12 @@ extends:
2929
stages:
3030
- stage: Stage
3131
jobs:
32-
- job: HostJob
32+
- job: Build
33+
templateContext:
34+
outputs:
35+
- output: pipelineArtifact
36+
path: $(Build.ArtifactStagingDirectory)/esrp-build
37+
artifact: esrp-build
3338
steps:
3439
- task: UsePythonVersion@0
3540
inputs:
@@ -41,9 +46,20 @@ extends:
4146
pip install -r requirements.txt
4247
pip install -e .
4348
for wheel in $(python setup.py --list-wheels); do
44-
PLAYWRIGHT_TARGET_WHEEL=$wheel python -m build --wheel
49+
PLAYWRIGHT_TARGET_WHEEL=$wheel python -m build --wheel --outdir $(Build.ArtifactStagingDirectory)/esrp-build
4550
done
4651
displayName: 'Install & Build'
52+
- job: Publish
53+
dependsOn: Build
54+
templateContext:
55+
type: releaseJob
56+
isProduction: true
57+
inputs:
58+
- input: pipelineArtifact
59+
artifactName: esrp-build
60+
targetPath: $(Build.ArtifactStagingDirectory)/esrp-build
61+
steps:
62+
- checkout: none
4763
- task: EsrpRelease@7
4864
inputs:
4965
connectedservicename: 'Playwright-ESRP-Azure'
@@ -56,7 +72,7 @@ extends:
5672
# Keeping it commented out as a workaround for:
5773
# https://portal.microsofticm.com/imp/v3/incidents/incident/499972482/summary
5874
# contentsource: 'folder'
59-
folderlocation: './dist/'
75+
folderlocation: '$(Build.ArtifactStagingDirectory)/esrp-build'
6076
waitforreleasecompletion: true
6177
6278
approvers: '[email protected]'

0 commit comments

Comments
 (0)