-
Notifications
You must be signed in to change notification settings - Fork 511
/
Copy pathazure-pipelines-release.yml
90 lines (81 loc) · 1.99 KB
/
azure-pipelines-release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
name: Release-$(Build.SourceBranchName)-$(Date:yyyyMMdd)$(Rev:.rr)
trigger: none
variables:
# Don't download unneeded packages
- name: DOTNET_NOLOGO
value: 'true'
# Improve performance by not sending telemetry
- name: DOTNET_CLI_TELEMETRY_OPTOUT
value: 'true'
# Improve performance by not generating certificates
- name: DOTNET_GENERATE_ASPNET_CERTIFICATE
value: 'false'
resources:
repositories:
- repository: ComplianceRepo
type: github
endpoint: GitHub
name: PowerShell/Compliance
- repository: PowerShellEditorServices
type: git
name: PowerShellEditorServices
ref: release
pipelines:
- pipeline: PowerShellEditorServices
source: PowerShellEditorServices
trigger:
branches:
- release
stages:
- stage: Build
displayName: Build the release
jobs:
- job: Build
pool:
name: 1ES
demands: ImageOverride -equals PSMMS2019-Secure
steps:
- template: templates/ci-general.yml
parameters:
usePipelineArtifact: true
- stage: Sign
displayName: Sign the release
jobs:
- job: Sign
pool:
name: 1ES
demands: ImageOverride -equals PSMMS2019-Secure
variables:
- group: ESRP
steps:
- template: templates/release-general.yml
- stage: PublishGitHub
displayName: Publish the draft release
jobs:
- deployment: Publish
environment: vscode-powershell-github
pool:
name: 1ES
demands: ImageOverride -equals PSMMSUbuntu20.04-Secure
variables:
- group: Publish
strategy:
runOnce:
deploy:
steps:
- template: templates/publish-github.yml
- stage: PublishMarkets
displayName: Publish to marketplace and gallery
jobs:
- deployment: Publish
environment: vscode-powershell-markets
pool:
name: 1ES
demands: ImageOverride -equals PSMMSUbuntu20.04-Secure
variables:
- group: Publish
strategy:
runOnce:
deploy:
steps:
- template: templates/publish-markets.yml