Skip to content

Commit 672e52a

Browse files
authored
devops: move to automated releases / move to PME (#3230)
1 parent 3206718 commit 672e52a

File tree

1 file changed

+15
-6
lines changed

1 file changed

+15
-6
lines changed

.azure-pipelines/publish.yml

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
1-
trigger: none # We don't want CI builds, just a manual release process
1+
# Run only on tags (no PRs, no branch CI)
2+
pr: none
3+
trigger:
4+
tags:
5+
include:
6+
- '*'
7+
28
parameters:
39
- name: doRelease
410
displayName: Push the Playwright Release to NuGet.org
@@ -12,9 +18,9 @@ parameters:
1218

1319
variables:
1420
- name: BuildConfiguration
15-
value: 'Release'
21+
value: 'Release'
1622
- name: TeamName
17-
value: Playwright
23+
value: 'Playwright'
1824

1925
resources:
2026
repositories:
@@ -44,7 +50,7 @@ extends:
4450
signing:
4551
enabled: true
4652
signType: real
47-
templateContext:
53+
signWithProd: true
4854
outputs:
4955
- output: pipelineArtifact
5056
displayName: 'Publish Artifact'
@@ -85,7 +91,10 @@ extends:
8591
versioningScheme: 'off'
8692
- task: 1ES.PublishNuget@1
8793
displayName: Publish Microsoft.Playwright{NUnit,MSTest,Xunit,TestAdapter}
88-
condition: eq('${{parameters.doRelease}}', true)
94+
condition: or(
95+
eq('${{ parameters.doRelease }}', true),
96+
startsWith(variables['Build.SourceBranch'], 'refs/tags/')
97+
)
8998
inputs:
9099
useDotNetTask: false
91100
# The reason for the 1.* after the package name is that we know the end of the package name in order to not
@@ -97,7 +106,7 @@ extends:
97106
publishFeedCredentials: 'NuGet-Playwright'
98107
- task: 1ES.PublishNuget@1
99108
displayName: Publish Microsoft.Playwright.CLI
100-
condition: eq('${{parameters.doReleaseCLI}}', true)
109+
condition: eq('${{ parameters.doReleaseCLI }}', true)
101110
inputs:
102111
useDotNetTask: false
103112
packagesToPush: '$(Build.ArtifactStagingDirectory)/nuget/Microsoft.Playwright.CLI.1.*.nupkg'

0 commit comments

Comments
 (0)