Skip to content

Commit 69351c6

Browse files
committed
Share ReleaseTools setup with vscode-powershell
Also change trigger to the `release` branch per upstream changes.
1 parent 8cb5e78 commit 69351c6

File tree

2 files changed

+3
-17
lines changed

2 files changed

+3
-17
lines changed

.vsts-ci/azure-pipelines-release.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,7 @@ variables:
1111
trigger:
1212
branches:
1313
include:
14-
- release/*
15-
tags:
16-
include:
17-
- v*
14+
- release
1815

1916
resources:
2017
repositories:
Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,12 @@
11
steps:
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

0 commit comments

Comments
 (0)