File tree Expand file tree Collapse file tree 2 files changed +3
-17
lines changed Expand file tree Collapse file tree 2 files changed +3
-17
lines changed Original file line number Diff line number Diff line change @@ -11,10 +11,7 @@ variables:
1111trigger :
1212 branches :
1313 include :
14- - release/*
15- tags :
16- include :
17- - v*
14+ - release
1815
1916resources :
2017 repositories :
Original file line number Diff line number Diff line change 11steps :
22- checkout : self
3-
43- checkout : vscode-powershell
54
65- download : current
76 artifact : PowerShellEditorServices
87 displayName : Download signed pipeline artifacts
98
109- pwsh : |
11- Write-Host "Install and import PowerShell modules"
12- Set-PSRepository -Name PSGallery -InstallationPolicy Trusted | Out-Null
13- Install-Module -Name PowerShellForGitHub -Scope CurrentUser -Force
14- Import-Module '$(Build.SourcesDirectory)/vscode-powershell/tools/ReleaseTools.psm1'
15-
16- Write-Host "Setup authentication"
17- Set-GitHubConfiguration -SuppressTelemetryReminder
18- $password = ConvertTo-SecureString -String '$(GitHubToken)' -AsPlainText -Force
19- Set-GitHubAuthentication -Credential (New-Object System.Management.Automation.PSCredential ("token", $password))
20-
21- Write-Host "Publish draft release"
22- New-DraftRelease -RepositoryName PowerShellEditorServices -Assets '$(Pipeline.Workspace)/PowerShellEditorServices/PowerShellEditorServices.zip'
10+ $(Build.SourcesDirectory)/vscode-powershell/tools/setupReleaseTools.ps1 -Token $(GitHubToken)
11+ New-DraftRelease -RepositoryName PowerShellEditorServices -Assets $(Pipeline.Workspace)/PowerShellEditorServices/PowerShellEditorServices.zip
2312 displayName : Drafting a GitHub Release
You can’t perform that action at this time.
0 commit comments