Skip to content

Commit 64337b8

Browse files
committed
devops: use separate Release job for publishing
1 parent ab02bb0 commit 64337b8

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

.azure-pipelines/publish.yml

Lines changed: 18 additions & 2 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'

0 commit comments

Comments
 (0)