File tree Expand file tree Collapse file tree 4 files changed +17
-38
lines changed Expand file tree Collapse file tree 4 files changed +17
-38
lines changed Original file line number Diff line number Diff line change @@ -9,28 +9,9 @@ variables:
9
9
value : ' true'
10
10
11
11
trigger :
12
- batch : true
13
12
branches :
14
13
include :
15
14
- master
16
- - legacy/1.x
17
- paths :
18
- exclude :
19
- - /.dependabot/*
20
- - /.poshchan/*
21
- - /.github/**/*
22
- - /.vscode/**/*
23
- - /.vsts-ci/misc-analysis.yml
24
- - /tools/**/*
25
- - .editorconfig
26
- - .gitattributes
27
- - .gitignore
28
- - /docs/**/*
29
- - /CHANGELOG.md
30
- - /CONTRIBUTING.md
31
- - /README.md
32
- - /LICENSE
33
- - /CODE_OF_CONDUCT.md
34
15
35
16
jobs :
36
17
- job : PS51_Win2016
Original file line number Diff line number Diff line change 1
1
name : PR-$(System.PullRequest.PullRequestNumber)-$(Date:yyyyMMdd)$(Rev:.rr)
2
- trigger :
3
- # Batch merge builds together while a merge build is running
4
- batch : true
5
- branches :
6
- include :
7
- - master
8
2
9
- pr :
3
+ trigger :
10
4
branches :
11
5
include :
12
6
- master
13
- - legacy/1.x
14
7
15
8
resources :
16
9
repositories :
17
10
- repository : ComplianceRepo
18
11
type : github
19
- endpoint : ComplianceGHRepo
12
+ endpoint : GitHub
20
13
name : PowerShell/compliance
21
14
22
15
jobs :
23
- - job : Compliance_Job
16
+ - job : Compliance
24
17
pool :
25
18
vmImage : windows-latest
26
19
steps :
27
20
- checkout : self
28
- clean : true
29
21
- checkout : ComplianceRepo
30
- clean : true
31
22
- template : ci-compliance.yml@ComplianceRepo
Original file line number Diff line number Diff line change 1
1
steps :
2
2
- checkout : self
3
+
3
4
- checkout : vscode-powershell
5
+
4
6
- download : current
5
7
artifact : PowerShellEditorServices
6
8
displayName : Download signed pipeline artifacts
9
+
7
10
- pwsh : |
11
+ Write-Host "Install and import PowerShell modules"
8
12
Set-PSRepository -Name PSGallery -InstallationPolicy Trusted | Out-Null
9
- Install-Module -Name PowerShellForGitHub -Scope CurrentUser -Force -Confirm:$false
13
+ Install-Module -Name PowerShellForGitHub -Scope CurrentUser -Force
10
14
Import-Module '$(Build.SourcesDirectory)/vscode-powershell/tools/ReleaseTools.psm1'
15
+
16
+ Write-Host "Setup authentication"
11
17
Set-GitHubConfiguration -SuppressTelemetryReminder
12
18
$password = ConvertTo-SecureString -String '$(GitHubToken)' -AsPlainText -Force
13
19
Set-GitHubAuthentication -Credential (New-Object System.Management.Automation.PSCredential ("token", $password))
20
+
21
+ Write-Host "Publish draft release"
14
22
New-DraftRelease -RepositoryName PowerShellEditorServices -Assets '$(Pipeline.Workspace)/PowerShellEditorServices/PowerShellEditorServices.zip'
15
23
displayName : Drafting a GitHub Release
Original file line number Diff line number Diff line change 1
1
steps :
2
-
3
2
- download : current
4
3
displayName : Download unsigned pipeline artifacts
5
4
@@ -52,10 +51,6 @@ steps:
52
51
replaceExistingArchive : true
53
52
verbose : true
54
53
55
- - publish : PowerShellEditorServices.zip
56
- artifact : PowerShellEditorServices
57
- displayName : Publish signed pipeline artifacts
58
-
59
54
- checkout : self
60
55
61
56
- template : assembly-module-compliance.yml@ComplianceRepo
74
69
optionsFTPath : $(Build.SourcesDirectory)/PowerShellEditorServices/tools/terms/FileTypeSet.xml
75
70
# tsa-upload
76
71
codeBaseName : PowerShell_PowerShellEditorServices_20210201
77
- # selections
72
+ # We don't use any Windows APIs directly, so we don't need API scan
78
73
APIScan : false
74
+
75
+ - publish : PowerShellEditorServices.zip
76
+ artifact : PowerShellEditorServices
77
+ displayName : Publish signed pipeline artifacts
You can’t perform that action at this time.
0 commit comments