-
Notifications
You must be signed in to change notification settings - Fork 2
/
Publish.ps1
20 lines (19 loc) · 944 Bytes
/
Publish.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
[CmdletBinding(SupportsShouldProcess=$true)]
param (
[parameter(Mandatory=$true,
HelpMessage="Create token using https://dev.azure.com/github-editor-tools/_usersSettings/tokens?action=edit with Organization: All accessible organizations, Selected scopes: Marketplace (publish)")]
[string] $personalAccessToken
,
[parameter(
HelpMessage="Publisher name which must match the one in the manifest")]
[string] $publisherName="JamieCansdale"
,
[parameter(
HelpMessage="Path to the .vsix file for publishing")]
[string] $payload="$PSScriptRoot\TemporaryProjects.Vsix\bin\Release\TemporaryProjects.vsix"
,
[parameter(
HelpMessage="Path to the publish manifest .json file")]
[string] $publishManifest = "$PSScriptRoot\publishManifest.json"
)
& $PSScriptRoot\Publish-Vsix.ps1 -WhatIf:$WhatIf -Confirm:$Confirm -publisherName:$publisherName -personalAccessToken:$personalAccessToken -payload:$payload -publishManifest:$publishManifest