Skip to content

Commit 2616e7c

Browse files
rjmholtRobert Holt
authored andcommitted
Generalize release script to work with PSES
1 parent 45fe271 commit 2616e7c

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

tools/postReleaseScripts/publishVsixGHRelease.ps1 renamed to tools/postReleaseScripts/publishGHRelease.ps1

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ param(
1010
[string]
1111
$GitHubToken,
1212

13+
[Parameter(Mandatory)]
14+
[string]
15+
$Repository,
16+
1317
[Parameter()]
1418
[string]
1519
$TargetFork = 'PowerShell',
@@ -23,7 +27,7 @@ param(
2327
$AssetPath
2428
)
2529

26-
Import-Module "$PSScriptRoot/../GitHubTools.psm1"
30+
Import-Module "$PSScriptRoot/../GitHubTools.psm1" -Force
2731

2832
function GetDescriptionFromChangelog
2933
{
@@ -45,17 +49,9 @@ function GetDescriptionFromChangelog
4549

4650
$tag = "v$Version"
4751

48-
if (-not $PSBoundParameters.ContainsKey('AssetPath'))
49-
{
50-
$AssetPath = @(
51-
"$PSScriptRoot/../../PowerShell-$Version.vsix"
52-
"$PSScriptRoot/../../scripts/Install-VSCode.ps1"
53-
)
54-
}
55-
5652
$releaseParams = @{
5753
Organization = $TargetFork
58-
Repository = 'vscode-PowerShell'
54+
Repository = $Repository
5955
Tag = $tag
6056
ReleaseName = $tag
6157
Branch = "release/$Version"

0 commit comments

Comments
 (0)