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:
11
11
trigger :
12
12
branches :
13
13
include :
14
- - release/*
15
- tags :
16
- include :
17
- - v*
14
+ - release
18
15
19
16
resources :
20
17
repositories :
Original file line number Diff line number Diff line change 1
1
steps :
2
2
- checkout : self
3
-
4
3
- checkout : vscode-powershell
5
4
6
5
- download : current
7
6
artifact : PowerShellEditorServices
8
7
displayName : Download signed pipeline artifacts
9
8
10
9
- 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
23
12
displayName : Drafting a GitHub Release
You can’t perform that action at this time.
0 commit comments